From cbe1c9cd59065026b466aa02150e2f1aa90a8773 Mon Sep 17 00:00:00 2001 From: Jordan Nelson Date: Wed, 29 Jun 2022 19:26:56 -0400 Subject: [PATCH] fix(authenticator): duplicate phone showing for SMS MFA (#1835) --- packages/amplify_authenticator/lib/src/widgets/form.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/amplify_authenticator/lib/src/widgets/form.dart b/packages/amplify_authenticator/lib/src/widgets/form.dart index 4297035391..b56b85fc31 100644 --- a/packages/amplify_authenticator/lib/src/widgets/form.dart +++ b/packages/amplify_authenticator/lib/src/widgets/form.dart @@ -340,7 +340,7 @@ class _SignUpFormState extends AuthenticatorFormState { .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(