Skip to content

Commit

Permalink
Small validation fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dimak1 committed Nov 6, 2024
1 parent c2b7ef5 commit dcf4010
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions strr-web/components/bcros/form-section/property/Details.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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')"
Expand Down
4 changes: 4 additions & 0 deletions strr-web/components/bcros/form-section/property/Form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ watch(
} else if (newValue === 'false') {
formState.propertyDetails.isUnitOnPrincipalResidenceProperty = false
}
if (isComplete) {
validatePrincipalResidenceOptions()
}
}
)
Expand Down
2 changes: 1 addition & 1 deletion strr-web/interfaces/property-details-i.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export interface PropertyDetailsI {
listingDetails: { url: string }[]
rentalUnitSpaceType: string
isUnitOnPrincipalResidenceProperty: boolean | undefined
hostResidence: string | null
hostResidence: string | undefined
numberOfRoomsForRent: number
}

0 comments on commit dcf4010

Please sign in to comment.