Skip to content

Commit

Permalink
Fix backup regression
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Feb 1, 2023
1 parent 6f3772e commit 6d548a2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/bloc/user_profile/user_profile_bloc.dart
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,7 @@ class UserProfileBloc {
}

void _listenRegistrationRequests(ServiceInjector injector) {
_registrationController.stream.listen((request) async {
SharedPreferences preferences = await _preferences;
await _saveChanges(preferences, _userStreamController.value.copyWith(themeId: "DARK"));
_registrationController.stream.listen((request) async {
_refreshRegistration(_userStreamController.value);
});
}
Expand All @@ -368,7 +366,7 @@ class UserProfileBloc {
} catch (e) {
_registrationController.addError(e);
}
userToRegister = _userStreamController.value.copyWith(registrationRequested: true);
userToRegister = userToRegister.copyWith(registrationRequested: true);
await _saveChanges(preferences, userToRegister);
}

Expand Down

0 comments on commit 6d548a2

Please sign in to comment.