Skip to content

Commit

Permalink
Merge pull request #1232 from bcgov/fix/edx-2075
Browse files Browse the repository at this point in the history
EDX-2075: cleaned up spaces around user's display name so the initial…
  • Loading branch information
mightycox authored Nov 30, 2023
2 parents 1251be1 + f21a9b5 commit 55d028d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/components/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async function getUserInfo(req, res) {

if (req.session.digitalIdentityData && isDistrictOrSchoolAlreadyInUserSession(req) && req.session.edxUserData) {
let resData = {
displayName: `${req.session.edxUserData?.firstName} ${req.session.edxUserData?.lastName}`,
displayName: `${req.session.edxUserData?.firstName} ${req.session.edxUserData?.lastName}`.trim(),
accountType: userInfo._json.accountType,
userSchoolIDs: req.session.userSchoolIDs,
userDistrictIDs:req.session.userDistrictIDs,
Expand Down

0 comments on commit 55d028d

Please sign in to comment.