From ffe0e600486611c46fcc89d2693a12c2abd486ca Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 23 May 2022 09:16:13 +0700 Subject: [PATCH] Fix otp bug on web --- lib/components/otp_body.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }); },