Skip to content

fixed bug for admin info showing to all users#51

Open
himansig7 wants to merge 1 commit intomainfrom
bug/himansig7/admin-user-appearing
Open

fixed bug for admin info showing to all users#51
himansig7 wants to merge 1 commit intomainfrom
bug/himansig7/admin-user-appearing

Conversation

@himansig7
Copy link
Collaborator

problem was in AuthContext.tsx
line needed to be changed into : if (userInfo.data.email === 'cses@ucsd.edu' || userInfo.data.email === 'h4gupta@ucsd.edu')

because just keeping it as || 'h4gupta' would automatically say true.

problem was in AuthContext.tsx
line needed to be changed into :        if (userInfo.data.email === 'cses@ucsd.edu' || userInfo.data.email === 'h4gupta@ucsd.edu')

because just keeping it as || 'h4gupta' would automatically say true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant