From d405af537040874de4e2ca19b2a1911e5d3307d3 Mon Sep 17 00:00:00 2001 From: Sampo Tawast <5328394+sirtawast@users.noreply.github.com> Date: Tue, 5 Nov 2024 13:46:41 +0200 Subject: [PATCH] fix: allow for talpa-rejected batches to be seen (#3501) --- .../src/components/applicationList/HandlerIndex.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/frontend/benefit/handler/src/components/applicationList/HandlerIndex.tsx b/frontend/benefit/handler/src/components/applicationList/HandlerIndex.tsx index 3f4eb88354..d3bdec4827 100644 --- a/frontend/benefit/handler/src/components/applicationList/HandlerIndex.tsx +++ b/frontend/benefit/handler/src/components/applicationList/HandlerIndex.tsx @@ -65,7 +65,10 @@ const HandlerIndex: React.FC = ({ (app: ApplicationListItemData) => !isString(app.batch) && [APPLICATION_STATUSES.ACCEPTED].includes(app.status) && - app.batch?.status === BATCH_STATUSES.DECIDED_ACCEPTED + [ + BATCH_STATUSES.DECIDED_ACCEPTED, + BATCH_STATUSES.REJECTED_BY_TALPA, + ].includes(app?.batch?.status) ).length; const getTabCountUndecided = (): number => @@ -119,7 +122,10 @@ const HandlerIndex: React.FC = ({ const isInPayment = (application: ApplicationListItemData): boolean => [APPLICATION_STATUSES.ACCEPTED].includes(application.status) && !isString(application.batch) && - [BATCH_STATUSES.DECIDED_ACCEPTED].includes(application?.batch?.status); + [ + BATCH_STATUSES.DECIDED_ACCEPTED, + BATCH_STATUSES.REJECTED_BY_TALPA, + ].includes(application?.batch?.status); return (