Skip to content

Commit

Permalink
addresses nits
Browse files Browse the repository at this point in the history
  • Loading branch information
pragyakallanagoudar committed May 15, 2024
1 parent a12a127 commit 3fcd2be
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/app/(auth)/forgot-password/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function ForgotPassword() {
const handleForgotPassword = async (e: React.FormEvent<HTMLFormElement>) => {
e.preventDefault();
if (!isEmail(email)) {
setEmailError('Invalid email.');
setEmailError('Could not find email.');
return;
}
const { error } = await supabase.auth.resetPasswordForEmail(email, {
Expand Down
2 changes: 1 addition & 1 deletion src/app/(auth)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default function Login() {
</P>
</Flex>
<Flex $direction="column" $gap="20px">
<BigBlueButton type="submit">Log in</BigBlueButton>
<BigBlueButton type="submit">Log In</BigBlueButton>
<H4Centered>
Don’t have an account yet?{' '}
<LinkColored $color={COLORS.greyDark} href="/signup">
Expand Down
2 changes: 1 addition & 1 deletion src/app/(auth)/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default function SignUp() {
<H4Centered>
Have an account already?{' '}
<LinkColored $color={COLORS.greyDark} href="/login">
Log In
Log in
</LinkColored>
</H4Centered>
</Flex>
Expand Down
6 changes: 0 additions & 6 deletions src/utils/AuthProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,6 @@ export default function AuthProvider({
);
value.error = authError;
}
// } else if (error) {
// authError = {
// name: error.name,
// message: error.message,
// };
// }
return value;
},
[],
Expand Down

0 comments on commit 3fcd2be

Please sign in to comment.