Skip to content

Commit

Permalink
fix name updating un 3 months range
Browse files Browse the repository at this point in the history
  • Loading branch information
GravityDarkLab committed Jan 29, 2024
1 parent f671023 commit 5983573
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/base/networking/api/handler/settings_handler.dart
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class SettingsHandler {
/// This method sends a `patchUserSettings` gRPC call to update the user's preferred name on the server.
/// * [newName] - The new preferred name.
/// Returns `true` if the update was successful.
Future<bool> updatePreferredName(String newName) async {
Future<void> updatePreferredName(String newName) async {
try {
_logger.i('Updating user settings...');
final request = PatchUserSettingsRequest()
Expand All @@ -77,10 +77,9 @@ class SettingsHandler {
_logger.i('User settings updated successfully');
},
);
return true;
} catch (e) {
_logger.e('Error updating user settings: $e');
return false;
rethrow;
}
}

Expand Down

0 comments on commit 5983573

Please sign in to comment.