From 842df88cb2611237eb36f571455797166b4a68ce Mon Sep 17 00:00:00 2001 From: Sampo Tawast Date: Fri, 1 Mar 2024 15:18:21 +0200 Subject: [PATCH] fix: remove training compensations data on changes --- frontend/benefit/handler/src/hooks/useFormActions.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/benefit/handler/src/hooks/useFormActions.tsx b/frontend/benefit/handler/src/hooks/useFormActions.tsx index 3c62de7bb1..7ec01674f7 100644 --- a/frontend/benefit/handler/src/hooks/useFormActions.tsx +++ b/frontend/benefit/handler/src/hooks/useFormActions.tsx @@ -272,6 +272,7 @@ const useFormActions = ( deMinimisAidSet: deMinimisAids, action: APPLICATION_ACTIONS.HANDLER_ALLOW_APPLICATION_EDIT, benefitType: BENEFIT_TYPES.SALARY, + trainingCompensations: [], calculation: calculation ? getPayloadForCalculation(currentValues) : undefined,