Skip to content

Commit

Permalink
deleting console log
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Schantz committed Jul 15, 2024
1 parent 960f42a commit e767288
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 15 deletions.
17 changes: 6 additions & 11 deletions strr-web/pages/create-account-pre/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,12 @@ const {
const toggleAddSecondary = () => { addSecondaryContact.value = !addSecondaryContact.value }
const propertyToApiType = (type: string | undefined): string => {
switch (type) {
case (t('create-account.property-form.primaryDwelling')):
return 'PRIMARY'
case (t('create-account.property-form.secondarySuite')):
return 'SECONDARY'
case (t('create-account.property-form.accessory')):
return 'ACCESSORY'
case (t('create-account.property-form.float')):
return 'FLOAT_HOME'
case (t('create-account.property-form.other')):
return 'OTHER'
const tPropertyForm = (translationKey: string) => t(`create-account.property-form.${translationKey}`)
for (const key in propertyTypeMap) {
const propertyKey = propertyTypeMap[key as keyof PropertyTypeMapI]
if (type && tPropertyForm(propertyKey) === type) {
return key
}
}
return ''
}
Expand Down
4 changes: 0 additions & 4 deletions strr-web/pages/create-account.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,6 @@ onMounted(() => {
const toggleAddSecondary = () => { addSecondaryContact.value = !addSecondaryContact.value }
watch(formState.propertyDetails, () => {
console.log(propertyToApiType(formState.propertyDetails.propertyType))
})
const propertyToApiType = (type: string | undefined): string => {
const tPropertyForm = (translationKey: string) => t(`create-account.property-form.${translationKey}`)
for (const key in propertyTypeMap) {
Expand Down

0 comments on commit e767288

Please sign in to comment.