Skip to content

Commit fc784bb

Browse files
authored
fix MFA factor selection (#236)
1 parent 1aee208 commit fc784bb

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/widgets/stepUp/mfaStepUpWidget.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,16 @@ export const FaSelectionView = (props: FaSelectionViewProps) => {
167167
return <VerificationCodeView {...response} auth={props.auth} />
168168
}
169169

170-
if (amr.length === 1) {
171-
<div>
172-
{showIntro && <Intro>{i18n('mfa.select.factor')}</Intro>}
173-
<StartPasswordlessForm
174-
options={amr.map(factor => ({key: factor, value: factor, label: factor}))}
175-
handler={onChooseFa}
176-
/>
177-
</div>
170+
if (amr.length >= 1) {
171+
return (
172+
<div>
173+
{showIntro && <Intro>{i18n('mfa.select.factor')}</Intro>}
174+
<StartPasswordlessForm
175+
options={amr.map(factor => ({key: factor, value: factor, label: factor}))}
176+
handler={onChooseFa}
177+
/>
178+
</div>
179+
)
178180
}
179181

180182
return null;

0 commit comments

Comments
 (0)