Skip to content

Commit

Permalink
Disable mark as paid button for completed status (#3484)
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinludu authored Jan 23, 2024
1 parent fc0429e commit 70b7156
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/common/PageActions/components/RewardActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export function RewardActions({ rewardId, onClick }: { rewardId: string; onClick
const isMarkRewardPaidEnabled =
rewardPermissions?.mark_paid &&
reward.status !== 'paid' &&
reward.status !== 'complete' &&
reward.applications.length > 0 &&
reward.applications.every(
(submission) => submissionIsComplete({ application: submission }) || submission.status === 'rejected'
Expand Down

0 comments on commit 70b7156

Please sign in to comment.