Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update execute-award-bounty-action.ts

Kiran K34976271b529
diff --git a/apps/web/lib/api/workflows/execute-award-bounty-action.ts b/apps/web/lib/api/workflows/execute-award-bounty-action.ts
index 76bae34d44..1275d3a41d 100644
--- a/apps/web/lib/api/workflows/execute-award-bounty-action.ts
+++ b/apps/web/lib/api/workflows/execute-award-bounty-action.ts
@@ -40,6 +40,11 @@ export const executeAwardBountyAction = async ({
return;
}
+ if (!bounty.rewardAmount) {
+ console.error(`Bounty ${bountyId} has no reward amount.`);
+ return;
+ }
+
const now = new Date();
// Check bounty validity