From 9c55660fb7aa1c2e57046ae4712960a1100508aa Mon Sep 17 00:00:00 2001 From: yaso Date: Mon, 3 Feb 2025 09:57:24 +0200 Subject: [PATCH] fix navigation bug --- .../lib/mih_packages/manage_business/business_details.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Frontend/lib/mih_packages/manage_business/business_details.dart b/Frontend/lib/mih_packages/manage_business/business_details.dart index a0654f30..bfacf1f5 100644 --- a/Frontend/lib/mih_packages/manage_business/business_details.dart +++ b/Frontend/lib/mih_packages/manage_business/business_details.dart @@ -123,7 +123,11 @@ class _BusinessDetailsState extends State { deleteFileApiCall(oldSigPath); } - Navigator.of(context).pushNamed('/'); + Navigator.of(context).pop(); + Navigator.of(context).popAndPushNamed( + '/', + arguments: AuthArguments(false, false), + ); String message = "Your business profile is now live! You can now start connecting with customers and growing your business."; successPopUp(message);