Skip to content

Commit

Permalink
fix: send default paySubsidyPercent value
Browse files Browse the repository at this point in the history
  • Loading branch information
mjturt committed Sep 29, 2023
1 parent 921a08b commit 2b17eda
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/benefit/handler/src/hooks/useFormActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { APPLICATION_FIELD_KEYS } from 'benefit/handler/constants';
import DeMinimisContext from 'benefit/handler/context/DeMinimisContext';
import { StepActionType } from 'benefit/handler/hooks/useSteps';
import { Application } from 'benefit/handler/types/application';
import { APPLICATION_STATUSES, BENEFIT_TYPES } from 'benefit-shared/constants';
import {
APPLICATION_STATUSES,
BENEFIT_TYPES,
PAY_SUBSIDY_OPTIONS,
} from 'benefit-shared/constants';
import { ApplicationData, Employee } from 'benefit-shared/types/application';
import camelcaseKeys from 'camelcase-keys';
import { useRouter } from 'next/router';
Expand Down Expand Up @@ -140,6 +144,7 @@ const useFormActions = (application: Partial<Application>): FormActions => {

const normalizedValues = {
...currentValues,
paySubsidyPercent: PAY_SUBSIDY_OPTIONS[0],
employee: employee || {},
startDate: currentValues.startDate
? convertToBackendDateFormat(parseDate(currentValues.startDate))
Expand Down

0 comments on commit 2b17eda

Please sign in to comment.