Merge pull request #68 from yaso-meth/BUG--business-profile-update-navigation

fix navigation bug post business update
This commit is contained in:
yaso-meth 2025-02-03 09:58:51 +02:00 committed by GitHub
commit 658fd512f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -123,7 +123,11 @@ class _BusinessDetailsState extends State<BusinessDetails> {
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);