diff --git a/lib/components/otp_body.dart b/lib/components/otp_body.dart index cad7f49..3b41f7a 100644 --- a/lib/components/otp_body.dart +++ b/lib/components/otp_body.dart @@ -272,10 +272,10 @@ class _OtpBodyState extends State { if (res['statusCode'] == 200) { addSession(res['data']['id'], res['data']['session_token']); Navigator.pop(context); - Navigator.pop(context); Navigator.pushReplacement(context, MaterialPageRoute( builder: (context) => const Menu(initialScreen: 2) )); + Navigator.pop(context); } }); },