File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -167,14 +167,16 @@ export const FaSelectionView = (props: FaSelectionViewProps) => {
167
167
return < VerificationCodeView { ...response } auth = { props . auth } />
168
168
}
169
169
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
+ )
178
180
}
179
181
180
182
return null ;
You can’t perform that action at this time.
0 commit comments