Fix otp bug on web

This commit is contained in:
Moe Poi ~ 2022-05-23 09:16:13 +07:00
parent 4ff9343d6f
commit ffe0e60048

View file

@ -272,10 +272,10 @@ class _OtpBodyState extends State<OtpBody> {
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);
}
});
},