Skip to content

Commit

Permalink
Small Fix for year to display after resuming draft (#1417)
Browse files Browse the repository at this point in the history
* Update year to number for select to work

* Update type
  • Loading branch information
orelbn authored Jul 7, 2023
1 parent fff787d commit 27433ba
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,11 @@ export default defineComponent({
const localState = reactive({
currentYear: new Date().getFullYear(),
yearOfManufacture: getMhrRegistrationYearOfManufacture.value?.toString()
yearOfManufacture: getMhrRegistrationYearOfManufacture?.value
})
watch(() => localState.yearOfManufacture, (val: string) => {
if (parseInt(val)) {
setMhrHomeBaseInformation({ key: 'year', value: parseInt(val) })
}
watch(() => localState.yearOfManufacture, (val: number) => {
setMhrHomeBaseInformation({ key: 'year', value: val })
})
return {
Expand Down

0 comments on commit 27433ba

Please sign in to comment.