diff --git a/strr-web/components/bcros/form-section/property/Details.vue b/strr-web/components/bcros/form-section/property/Details.vue index 1d404092..a9e37f7c 100644 --- a/strr-web/components/bcros/form-section/property/Details.vue +++ b/strr-web/components/bcros/form-section/property/Details.vue @@ -23,8 +23,6 @@ v-model="isUnitOnPrincipalResidenceProperty" :placeholder="t('createAccount.propertyForm.isUnitOnPrincipalResidenceProperty')" :options="principalResidenceOptions" - option-attribute="label" - opt class="w-full" style="color: #1a202c; /* text-gray-900 */" @blur="emit('validatePrincipalResidenceOptions')" diff --git a/strr-web/components/bcros/form-section/property/Form.vue b/strr-web/components/bcros/form-section/property/Form.vue index 37d5503f..8249e872 100644 --- a/strr-web/components/bcros/form-section/property/Form.vue +++ b/strr-web/components/bcros/form-section/property/Form.vue @@ -233,6 +233,10 @@ watch( } else if (newValue === 'false') { formState.propertyDetails.isUnitOnPrincipalResidenceProperty = false } + + if (isComplete) { + validatePrincipalResidenceOptions() + } } ) diff --git a/strr-web/interfaces/property-details-i.ts b/strr-web/interfaces/property-details-i.ts index 2a882129..d6300475 100644 --- a/strr-web/interfaces/property-details-i.ts +++ b/strr-web/interfaces/property-details-i.ts @@ -16,6 +16,6 @@ export interface PropertyDetailsI { listingDetails: { url: string }[] rentalUnitSpaceType: string isUnitOnPrincipalResidenceProperty: boolean | undefined - hostResidence: string | null + hostResidence: string | undefined numberOfRoomsForRent: number }