Skip to content

Commit

Permalink
team initials not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sidhdhi-p committed Sep 30, 2024
1 parent 28b29d7 commit 870235b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions khelo/lib/ui/flow/team/add_team/add_team_view_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class AddTeamViewNotifier extends StateNotifier<AddTeamState> {

final name = state.nameController.text.trim();
final location = state.locationController.text.trim();
final initials = state.nameInitialsController.text.trim().toUpperCase();
final initials = state.nameInitialsController.text.trim();

List<TeamPlayer> players = [];

Expand All @@ -111,7 +111,7 @@ class AddTeamViewNotifier extends StateNotifier<AddTeamState> {
name_lowercase: name.caseAndSpaceInsensitive,
profile_img_url: imageUrl,
city: location.toLowerCase(),
initials: initials,
initials: initials.isNotEmpty ? initials : null,
created_by: state.currentUser!.id,
players: players,
created_at: state.editTeam?.created_at ?? DateTime.now(),
Expand Down Expand Up @@ -143,7 +143,7 @@ class AddTeamViewNotifier extends StateNotifier<AddTeamState> {
name_lowercase: name.caseAndSpaceInsensitive,
profile_img_url: imageUrl,
city: location.toLowerCase(),
initials: initials,
initials: initials.isNotEmpty ? initials : null,
created_by: state.currentUser!.id,
players: players,
created_at: state.editTeam?.created_at ?? DateTime.now(),
Expand Down

0 comments on commit 870235b

Please sign in to comment.