Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
chore: remove redundant error notification
Scott Wilson89245956ea9a
diff --git a/frontend/src/pages/user/PersonalSettingsPage/components/ChangeEmailSection/ChangeEmailSection.tsx b/frontend/src/pages/user/PersonalSettingsPage/components/ChangeEmailSection/ChangeEmailSection.tsxindex 0ea5cd6096..3bc6d71636 100644--- a/frontend/src/pages/user/PersonalSettingsPage/components/ChangeEmailSection/ChangeEmailSection.tsx+++ b/frontend/src/pages/user/PersonalSettingsPage/components/ChangeEmailSection/ChangeEmailSection.tsx@@ -101,15 +101,7 @@ export const ChangeEmailSection = () => {return;}- try {- await requestEmailChangeOTP({ newEmail });- } catch (err: any) {- createNotification({- text: err?.response?.data?.message || "Failed to request verification code",- type: "error"- });- return;- }+ await requestEmailChangeOTP({ newEmail });setPendingEmail(newEmail);setTypedOTP("");@@ -130,16 +122,7 @@ export const ChangeEmailSection = () => {return;}- try {- await verifyCurrentEmailOTP({ 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 verifyCurrentEmailOTP({ otpCode: typedOTP });setTypedOTP("");setOtpStep("newEmail");