diff --git a/strr-base-web/app/stores/strrContact.ts b/strr-base-web/app/stores/strrContact.ts index 1d469901..33a393a1 100644 --- a/strr-base-web/app/stores/strrContact.ts +++ b/strr-base-web/app/stores/strrContact.ts @@ -7,7 +7,7 @@ export const useStrrContactStore = defineStore('strr/contact', () => { const { userFullName } = storeToRefs(useConnectAccountStore()) const getContactSchema = (completingParty = false) => { return z.object({ - firstName: getRequiredNonEmptyString(t('validation.name.first')), + firstName: optionalOrEmptyString, middleName: optionalOrEmptyString, lastName: getRequiredNonEmptyString(t('validation.name.last')), position: completingParty ? optionalOrEmptyString : getRequiredNonEmptyString(t('validation.position')), diff --git a/strr-base-web/app/utils/permitDashHelpers.ts b/strr-base-web/app/utils/permitDashHelpers.ts index c3b4df3e..b4297958 100644 --- a/strr-base-web/app/utils/permitDashHelpers.ts +++ b/strr-base-web/app/utils/permitDashHelpers.ts @@ -126,9 +126,9 @@ export const getPartyItem = (party: Contact): ConnectAccordionItem => { : party.phone.number return { showAvatar: true, - label: `${party.firstName || ''} ` + + label: (`${party.firstName || ''} ` + `${party.middleName || ''} ` + - `${party.lastName || ''}`.replaceAll(' ', '').trim(), + `${party.lastName || ''}`).replaceAll(' ', ' ').trim(), values: [ { icon: 'i-mdi-at', diff --git a/strr-host-pm-web/app/stores/hostOwner.ts b/strr-host-pm-web/app/stores/hostOwner.ts index 31f5f258..db5a85af 100644 --- a/strr-host-pm-web/app/stores/hostOwner.ts +++ b/strr-host-pm-web/app/stores/hostOwner.ts @@ -10,7 +10,7 @@ export const useHostOwnerStore = defineStore('host/owner', () => { role: z.enum([OwnerRole.HOST, OwnerRole.CO_HOST, OwnerRole.PROPERTY_MANAGER], { errorMap: () => ({ message: t('validation.ownerRole') }) }), - firstName: getRequiredNonEmptyString(t('validation.name.first')), + firstName: optionalOrEmptyString, middleName: optionalOrEmptyString, lastName: getRequiredNonEmptyString(t('validation.name.last')), preferredName: optionalOrEmptyString, diff --git a/strr-platform-web/package.json b/strr-platform-web/package.json index fc5d5d03..c65fb6d9 100644 --- a/strr-platform-web/package.json +++ b/strr-platform-web/package.json @@ -2,7 +2,7 @@ "name": "strr-platform-web", "private": true, "type": "module", - "version": "0.0.18", + "version": "0.0.19", "scripts": { "build-check": "nuxt build", "build": "nuxt generate",