Skip to content

Commit

Permalink
Skip for password null check for anonymous users (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
nilsreichardt authored Jun 11, 2024
1 parent 0916efe commit 21a07a1
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions app/lib/settings/src/subpages/my_profile/my_profile_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -409,15 +409,17 @@ class _DeleteAccountDialogContentState
];

Future<void> tryToDeleteUser(BuildContext context) async {
if (isEmptyOrNull(password)) {
return;
}

final api = BlocProvider.of<SharezoneContext>(context).api;
final analytics = BlocProvider.of<SharezoneContext>(context).analytics;
final authUser = api.user.authUser!;
final fbUser = authUser.firebaseUser;
final provider = authUser.provider;
if (provider != Provider.anonymous) {
if (isEmptyOrNull(password)) {
return;
}
}

final analytics = BlocProvider.of<SharezoneContext>(context).analytics;

setState(() {
isLoading = true;
Expand Down

0 comments on commit 21a07a1

Please sign in to comment.