Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix: Dismiss dialog before navigation

Neeraj Gupta56d81735103e
diff --git a/lib/services/billing_service.dart b/lib/services/billing_service.dart
index d565149fcb..e9485f50c7 100644
--- a/lib/services/billing_service.dart
+++ b/lib/services/billing_service.dart
@@ -184,6 +184,7 @@ class BillingService {
try {
final String jwtToken = await UserService.instance.getFamiliesToken();
final bool familyExist = userDetails.isPartOfFamily();
+ await dialog.hide();
await Navigator.of(context).push(
MaterialPageRoute(
builder: (BuildContext context) {
@@ -198,6 +199,5 @@ class BillingService {
await dialog.hide();
await showGenericErrorDialog(context: context, error: e);
}
- await dialog.hide();
}
}