diff --git a/app/lib/screens/identity_verification_screen.dart b/app/lib/screens/identity_verification_screen.dart index 511ff09ba..a0923c962 100644 --- a/app/lib/screens/identity_verification_screen.dart +++ b/app/lib/screens/identity_verification_screen.dart @@ -503,8 +503,12 @@ class _IdentityVerificationScreenState } if (step == 2 && phoneCountdownNotifier.value == -1) { - await addPhoneNumberDialog(context, - newPhone: false, oldPhone: phone); + if (phone.isEmpty) { + await addPhoneNumberDialog(context, newPhone: true, oldPhone: ''); + } else { + await addPhoneNumberDialog(context, + newPhone: false, oldPhone: phone); + } var phoneMap = (await getPhone()); if (phoneMap.isEmpty || !phoneMap.containsKey('phone')) { diff --git a/app/lib/widgets/phone_widget.dart b/app/lib/widgets/phone_widget.dart index 61898b6bb..0e24e7430 100644 --- a/app/lib/widgets/phone_widget.dart +++ b/app/lib/widgets/phone_widget.dart @@ -161,7 +161,9 @@ class PhoneAlertDialogState extends State { Navigator.pop(context); }), if (valid) - TextButton(onPressed: verifyButton, child: const Text('Add')) + TextButton( + onPressed: verifyButton, + child: Text(widget.newPhone ? 'Add' : 'Update')) ]); }