Skip to content

Commit

Permalink
Fix for removing white space at the end of user's name while creation…
Browse files Browse the repository at this point in the history
…/updation (sunbird-cb#89)
  • Loading branch information
sreeragksgh authored and karthik-tarento committed Aug 7, 2024
1 parent 172b620 commit 887a005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private void formatFirstName(Request userRequest) {
.append(" ");
}
}
userRequest.getRequest().put(JsonKey.FIRST_NAME,modifiedFirstName.toString());
userRequest.getRequest().put(JsonKey.FIRST_NAME,modifiedFirstName.toString().trim());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ private String formatFirstName(String firstName) {
.append(" ");
}
}
return modifiedFirstName.toString();
return modifiedFirstName.toString().trim();
}
}

0 comments on commit 887a005

Please sign in to comment.