fix: error handling

This commit is contained in:
Piyush Gupta
2025-04-08 19:02:41 +05:30
parent 4699c0014b
commit e460ff5100
2 changed files with 3 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ on:
push:
branches:
- main
pull_request:
pull_request_target:
types: [opened, synchronize, reopened]
merge_group:
permissions:

View File

@@ -67,11 +67,10 @@ export const EditProfileDetailsForm = ({ user }: { user: TUser }) => {
if (!resetPasswordResponse?.data) {
const errorMessage = getFormattedErrorMessage(resetPasswordResponse);
toast.error(errorMessage);
return;
} else {
toast.success(t("auth.forgot-password.email-sent.heading"));
}
toast.success(t("auth.forgot-password.email-sent.heading"));
setIsResettingPassword(false);
};