Skip to content

Commit

Permalink
fix(authenticator): duplicate phone showing for SMS MFA (#1835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Nelson committed Jun 30, 2022
1 parent 710491b commit cbe1c9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amplify_authenticator/lib/src/widgets/form.dart
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ class _SignUpFormState extends AuthenticatorFormState<SignUpForm> {
.toList();

final hasSmsMfa = authConfig?.mfaTypes?.contains(MfaType.sms) ?? false;
if (hasSmsMfa) {
if (hasSmsMfa && selectedUsernameType != UsernameType.phoneNumber) {
final mfaConfiguration =
authConfig?.mfaConfiguration ?? MfaConfiguration.off;
final hasSmsField = runtimeFields.any(
Expand Down

0 comments on commit cbe1c9c

Please sign in to comment.