We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2f43bf commit 09a5526Copy full SHA for 09a5526
1 file changed
learning/tour-of-beam/frontend/lib/auth/notifier.dart
@@ -44,7 +44,6 @@ class AuthNotifier extends ChangeNotifier {
44
try {
45
await FirebaseAuth.instance.signInWithPopup(authProvider);
46
} on Exception catch (e) {
47
- // TODO(nausharipov) review: why toasts are not shown in ToB?
48
PlaygroundComponents.toastNotifier.addException(e);
49
}
50
@@ -54,7 +53,11 @@ class AuthNotifier extends ChangeNotifier {
54
53
55
56
Future<void> deleteAccount() async {
57
- await client.postDeleteUserProgress();
58
- await FirebaseAuth.instance.currentUser?.delete();
+ try {
+ await client.postDeleteUserProgress();
+ await FirebaseAuth.instance.currentUser?.delete();
59
+ } on Exception catch (e) {
60
+ PlaygroundComponents.toastNotifier.addException(e);
61
+ }
62
63
0 commit comments