Skip to content

Commit

Permalink
feat: use applicant's startDate as initial value for calculation (#3422)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast authored Oct 14, 2024
1 parent 20f005e commit 6b815cf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ const useSalaryBenefitCalculatorData = (
const formik = useFormik<CalculationFormProps>({
initialValues: {
[CALCULATION_SALARY_KEYS.START_DATE]: convertToUIDateFormat(
application?.calculation?.startDate
application?.calculation?.startDate || application?.startDate
),
[CALCULATION_SALARY_KEYS.END_DATE]: convertToUIDateFormat(
application?.calculation?.endDate
application?.calculation?.endDate || application?.endDate
),
[CALCULATION_SALARY_KEYS.MONTHLY_PAY]:
application?.calculation?.monthlyPay,
Expand Down

0 comments on commit 6b815cf

Please sign in to comment.