Skip to content

Commit 5922f23

Browse files
committed
Show toast if invalid fields in other My Account tab blocking save
1 parent 082ace0 commit 5922f23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/pages/MyAccount.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ const AccountPageComponent = ({user, getChosenUserAuthSettings, error, userAuthS
311311
true
312312
)).then(() => setSaving(false)).catch(() => setSaving(false));
313313
return;
314-
} else if (activeTab == ACCOUNT_TAB.emailpreferences) {
314+
} else if (activeTab !== ACCOUNT_TAB.account) {
315315
dispatch(showErrorToast("Account update failed", "Please make sure that all required fields in the \"Profile\" tab have been filled in."));
316316
}
317317
setSaving(false);

0 commit comments

Comments
 (0)