Skip to content

Commit

Permalink
Merge pull request #5 from devchrisar/deepsource-transform-fa542e58
Browse files Browse the repository at this point in the history
format code with gofmt and prettier
  • Loading branch information
devchrisar committed Jul 8, 2023
2 parents 24f5be7 + dbba94f commit 80bf897
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/src/components/SignInForm/SignInForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default function SignInForm(props) {
try {
await loginFieldSchema.validate(
{ email: formData.email },
{ abortEarly: false }
{ abortEarly: false },
);
setErrors({});
goToNextStep();
Expand Down Expand Up @@ -187,7 +187,7 @@ export default function SignInForm(props) {
navigate("/forgot-password");
} else if (emailResponse.status === 429) {
displayErrorToast(
"Too many requests, try again later or wait 30 minutes"
"Too many requests, try again later or wait 30 minutes",
);
} else {
displayErrorToast("Failed to send the email. Please try again.");
Expand All @@ -203,7 +203,7 @@ export default function SignInForm(props) {
const response = await checkUsernameExists(userClaimNewPassword);
if (!response.exists) {
displayErrorToast(
"The account does not exist | email or @username are incorrect"
"The account does not exist | email or @username are incorrect",
);
} else {
await sendPasswordResetEmailAndHandleResponse(userClaimNewPassword);
Expand All @@ -224,7 +224,7 @@ export default function SignInForm(props) {
await sendPasswordResetEmailAndHandleResponse(userClaimNewPassword);
} else {
displayErrorToast(
"The account does not exist | email or @username are incorrect"
"The account does not exist | email or @username are incorrect",
);
}
} catch (error) {
Expand All @@ -239,7 +239,7 @@ export default function SignInForm(props) {
try {
await userForgotPasswordSchema.validate(
{ userClaimNewPassword },
{ abortEarly: false }
{ abortEarly: false },
);

if (isEmpty(userClaimNewPassword)) {
Expand Down

0 comments on commit 80bf897

Please sign in to comment.