diff --git a/lib/screens/auth/verification_methods_screen.dart b/lib/screens/auth/verification_methods_screen.dart index 85c5090a..fc85db8f 100644 --- a/lib/screens/auth/verification_methods_screen.dart +++ b/lib/screens/auth/verification_methods_screen.dart @@ -550,10 +550,15 @@ class _VerificationMethodsScreenState extends State { Helpers.showErrorToast(authenticationViewModel.error); } else { await authenticationViewModel.onCheckActivationCodeSuccess(); - if(value !=null) - Navigator.pop(context); - Navigator.pop(context); - navigateToLandingPage(); + if(value !=null){ + if(Navigator.canPop(context)) + Navigator.pop(context); + } + if(Navigator.canPop(context)) + Navigator.pop(context); + navigateToLandingPage(); + + } }