misc: addressed remaining comments

This commit is contained in:
Sheen Capadngan
2024-11-16 03:15:39 +08:00
parent 774371a218
commit 682b552fdc
4 changed files with 19 additions and 15 deletions
@@ -91,10 +91,12 @@ export default function LoginPage() {
return;
}
const { token, isMfaEnabled, mfaMethod } = await selectOrg.mutateAsync({
organizationId: organization.id,
userAgent: callbackPort ? UserAgentType.CLI : undefined
});
const { token, isMfaEnabled, mfaMethod } = await selectOrg
.mutateAsync({
organizationId: organization.id,
userAgent: callbackPort ? UserAgentType.CLI : undefined
})
.finally(() => setIsInitialOrgCheckLoading(false));
if (isMfaEnabled) {
SecurityClient.setMfaToken(token);