Skip to content

Commit

Permalink
fix: allow for talpa-rejected batches to be seen (#3501)
Browse files Browse the repository at this point in the history
  • Loading branch information
sirtawast authored Nov 5, 2024
1 parent 05f9d6d commit d405af5
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ const HandlerIndex: React.FC<ApplicationListProps> = ({
(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 =>
Expand Down Expand Up @@ -119,7 +122,10 @@ const HandlerIndex: React.FC<ApplicationListProps> = ({
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 (
<FrontPageProvider>
Expand Down

0 comments on commit d405af5

Please sign in to comment.