Handled error on deleting account
This commit is contained in:
parent
417aedcea7
commit
2e6bd52bdc
|
@ -244,7 +244,7 @@ class UserService {
|
|||
}
|
||||
} catch (e) {
|
||||
_logger.severe(e);
|
||||
showGenericErrorDialog(context);
|
||||
rethrow;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue