fix: lowerCase firstname and lastname when matching between rooms
This commit is contained in:
committed by
Simon.Emanuelsson
parent
9eff04f987
commit
361fd75133
@@ -73,7 +73,8 @@ export function getMultiroomDetailsSchema(
|
||||
(data) =>
|
||||
!crossValidationData.some(
|
||||
(room) =>
|
||||
room.firstName === data.firstName && room.lastName === data.lastName
|
||||
room.firstName.toLowerCase() === data.firstName.toLowerCase() &&
|
||||
room.lastName.toLowerCase() === data.lastName.toLowerCase()
|
||||
),
|
||||
{
|
||||
message: multiroomErrors.FIRST_AND_LAST_NAME_UNIQUE,
|
||||
@@ -84,7 +85,8 @@ export function getMultiroomDetailsSchema(
|
||||
(data) =>
|
||||
!crossValidationData.some(
|
||||
(room) =>
|
||||
room.firstName === data.firstName && room.lastName === data.lastName
|
||||
room.firstName.toLowerCase() === data.firstName.toLowerCase() &&
|
||||
room.lastName.toLowerCase() === data.lastName.toLowerCase()
|
||||
),
|
||||
{
|
||||
message: multiroomErrors.FIRST_AND_LAST_NAME_UNIQUE,
|
||||
|
||||
Reference in New Issue
Block a user