From 26f983d86d5c1500d716ed3470a9665fb946ab52 Mon Sep 17 00:00:00 2001 From: Lauren Zugai Date: Tue, 16 Sep 2025 15:22:40 -0500 Subject: [PATCH] fix(session): Add session verified guard back into PageSecondaryEmailAdd Because: * Users can attempt to add a secondary email without their session being verified, causing an error This commit: * Adds the session guard back. We removed it with some MFA guard work, but currently, we need both fixes FXA-12384 --- .../src/components/Settings/PageSecondaryEmailAdd/index.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/fxa-settings/src/components/Settings/PageSecondaryEmailAdd/index.tsx b/packages/fxa-settings/src/components/Settings/PageSecondaryEmailAdd/index.tsx index 26dfef1ea43..5c7afe16e84 100644 --- a/packages/fxa-settings/src/components/Settings/PageSecondaryEmailAdd/index.tsx +++ b/packages/fxa-settings/src/components/Settings/PageSecondaryEmailAdd/index.tsx @@ -16,6 +16,7 @@ import { AuthUiErrorNos } from 'fxa-settings/src/lib/auth-errors/auth-errors'; import { getErrorFtlId } from '../../../lib/error-utils'; import { MfaGuard } from '../MfaGuard'; import { useErrorHandler } from 'react-error-boundary'; +import VerifiedSessionGuard from '../VerifiedSessionGuard'; export const PageSecondaryEmailAdd = (_: RouteComponentProps) => { usePageViewEvent('settings.emails'); @@ -95,6 +96,7 @@ export const PageSecondaryEmailAdd = (_: RouteComponentProps) => { return ( +
{ ev.preventDefault();