Handled error on deleting account

This commit is contained in:
ashilkn 2022-12-22 19:08:39 +05:30
parent 417aedcea7
commit 2e6bd52bdc
2 changed files with 5 additions and 1 deletions

View file

@ -244,7 +244,7 @@ class UserService {
}
} catch (e) {
_logger.severe(e);
showGenericErrorDialog(context);
rethrow;
}
}

View file

@ -13,6 +13,7 @@ import 'package:photos/ui/components/button_widget.dart';
import 'package:photos/ui/components/dialog_widget.dart';
import 'package:photos/ui/components/models/button_type.dart';
import 'package:photos/utils/crypto_util.dart';
import 'package:photos/utils/dialog_util.dart';
import 'package:photos/utils/email_util.dart';
import 'package:photos/utils/toast_util.dart';
@ -187,6 +188,9 @@ class DeleteAccountPage extends StatelessWidget {
),
],
);
if (choice == ButtonAction.error) {
showGenericErrorDialog(context);
}
if (choice != ButtonAction.first) {
return;
}