Skip to content

Commit

Permalink
#2674 Checks if any statuses are denied
Browse files Browse the repository at this point in the history
  • Loading branch information
AShyamkumar19 committed Jun 29, 2024
1 parent 1b125b4 commit 2546c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/src/pages/FinancePage/RefundsSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const Refunds = ({ userReimbursementRequests, allReimbursementRequests }: Refund
const displayedReimbursements = allReimbursements && tabValue === 1 ? allReimbursements : userReimbursements;
const displayedReimbursementRequests = (
allReimbursementRequests && tabValue === 1 ? allReimbursementRequests : userReimbursementRequests
).filter((request: ReimbursementRequest) => request.reimbursementStatuses[0].type !== ReimbursementStatusType.DENIED);
).filter((request: ReimbursementRequest) => !request.reimbursementStatuses.some(status => status.type === ReimbursementStatusType.DENIED));

const rows = displayedReimbursements.map(getRefundRowData).sort(getComparator(order, orderBy));

Expand Down

0 comments on commit 2546c2c

Please sign in to comment.