Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

chore: remove redundant error notification

Scott Wilsonf42bdc708f3a
diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/ChangeEmailSection/ChangeEmailSection.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/ChangeEmailSection/ChangeEmailSection.tsx
index c3f52ba339..0ea5cd6096 100644
--- a/frontend/src/pages/user/PersonalSettingsPage/components/ChangeEmailSection/ChangeEmailSection.tsx
+++ b/frontend/src/pages/user/PersonalSettingsPage/components/ChangeEmailSection/ChangeEmailSection.tsx
@@ -159,16 +159,7 @@ export const ChangeEmailSection = () => {
return;
}
- try {
- await updateUserEmail({ newEmail: pendingEmail, otpCode: typedOTP });
- } catch (err: any) {
- const errorMessage = err?.response?.data?.message || "Invalid verification code";
- createNotification({ text: errorMessage, type: "error" });
- if (errorMessage.includes("Invalid verification code")) {
- resetFlow();
- }
- return;
- }
+ await updateUserEmail({ newEmail: pendingEmail, otpCode: typedOTP });
createNotification({
text: "Email updated successfully. You will be redirected to login.",