diff --git a/packages/fxa-settings/src/components/Settings/FlowRecoveryKeyConfirmPwd/index.tsx b/packages/fxa-settings/src/components/Settings/FlowRecoveryKeyConfirmPwd/index.tsx index de5ab13b73f..fcfb9ee4569 100644 --- a/packages/fxa-settings/src/components/Settings/FlowRecoveryKeyConfirmPwd/index.tsx +++ b/packages/fxa-settings/src/components/Settings/FlowRecoveryKeyConfirmPwd/index.tsx @@ -50,13 +50,6 @@ export const FlowRecoveryKeyConfirmPwd = ({ const [bannerText, setBannerText] = useState(); const [isLoading, setIsLoading] = useState(false); const [actionType, setActionType] = useState(); - const mounted = useRef(true); - - useEffect(() => { - return () => { - mounted.current = false; - }; - }); useEffect(() => { if (account.recoveryKey === true) { @@ -115,10 +108,7 @@ export const FlowRecoveryKeyConfirmPwd = ({ setBannerText(localizedError); } logViewEvent(`flow.${viewName}`, 'confirm-password.fail'); - } finally { - if (mounted.current) { - setIsLoading(false); - } + setIsLoading(false); } }, [ account,