From 60f979fbb537462b37ee7bffde8f55d20058a1dd Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Mon, 4 Nov 2024 00:04:47 +0800 Subject: [PATCH] feat: fix MfaSetupPage empty bug when user's signup application is empty --- web/src/auth/MfaSetupPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/auth/MfaSetupPage.js b/web/src/auth/MfaSetupPage.js index 2dd2ffd6..4ef31a97 100644 --- a/web/src/auth/MfaSetupPage.js +++ b/web/src/auth/MfaSetupPage.js @@ -37,7 +37,7 @@ class MfaSetupPage extends React.Component { this.state = { account: props.account, application: null, - applicationName: props.account.signupApplication ?? "", + applicationName: props.account.signupApplication ?? localStorage.getItem("applicationName") ?? "", current: location.state?.from !== undefined ? 1 : 0, mfaProps: null, mfaType: params.get("mfaType") ?? SmsMfaType,