Skip to content

Commit cbe1c9c

Browse files
committed
fix(authenticator): duplicate phone showing for SMS MFA (#1835)
1 parent 710491b commit cbe1c9c

File tree

1 file changed

+1
-1
lines changed
  • packages/amplify_authenticator/lib/src/widgets

1 file changed

+1
-1
lines changed

packages/amplify_authenticator/lib/src/widgets/form.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ class _SignUpFormState extends AuthenticatorFormState<SignUpForm> {
340340
.toList();
341341

342342
final hasSmsMfa = authConfig?.mfaTypes?.contains(MfaType.sms) ?? false;
343-
if (hasSmsMfa) {
343+
if (hasSmsMfa && selectedUsernameType != UsernameType.phoneNumber) {
344344
final mfaConfiguration =
345345
authConfig?.mfaConfiguration ?? MfaConfiguration.off;
346346
final hasSmsField = runtimeFields.any(

0 commit comments

Comments
 (0)