Skip to content

Commit

Permalink
Merge pull request #955 from Onlineberatung/fix/email-issue
Browse files Browse the repository at this point in the history
fix: issue when username has space OB-5197
  • Loading branch information
CarlosSoares authored Jun 14, 2023
2 parents 1839854 + 472610c commit 03979ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/bookings/components/Booking/booking.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { getValueFromCookie } from '../../../../components/sessionCookie/accessS
export const getUserEmail = (userData: UserDataInterface) => {
return userData.email
? userData.email
: userData.userName + '@suchtberatung.digital';
: userData.userName?.replace(/ /g, '') + '@suchtberatung.digital';
};

export const Booking = () => {
Expand Down

0 comments on commit 03979ca

Please sign in to comment.