Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Chuiantw1212 committed May 9, 2024
1 parent 32b071f commit eac20d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions components/calculator/retirement.vue
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,6 @@ interface IOptionItem {
value: string | number | boolean,
}
let pensionChartInstance = ref<Chart>()
const activeNames = ref(['1'])
const emits = defineEmits(['update:modelValue', 'change'])
const props = defineProps({
modelValue: {
Expand Down Expand Up @@ -301,7 +300,6 @@ const isFormDisabled = computed(() => {
return !lifeExpectancy || !monthlyBasicSalary
})
const unableToDraw = computed(() => {
const { monthlyContribution } = props.career.pension
const {
irrOverDecade
} = retirement.value.pension
Expand All @@ -310,7 +308,7 @@ const unableToDraw = computed(() => {
lifeExpectancy,
annualExpense,
} = retirement.value
const noBefore = !monthlyContribution || !irrOverDecade || !yearToRetirement
const noBefore = !irrOverDecade || !yearToRetirement
const noAfter = !lifeExpectancy || !annualExpense
return noBefore || noAfter
})
Expand Down

0 comments on commit eac20d4

Please sign in to comment.