mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-19 19:21:15 -05:00
fix: error handling
This commit is contained in:
2
.github/workflows/sonarqube.yml
vendored
2
.github/workflows/sonarqube.yml
vendored
@@ -4,7 +4,7 @@ on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
types: [opened, synchronize, reopened]
|
||||
merge_group:
|
||||
permissions:
|
||||
|
||||
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user