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 mutatePrefix

Steven Tey3d0ba0d8ccc4
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
index bcde7c9a0b..420ae86502 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/[bountyId]/bounty-submission-details-sheet.tsx
@@ -57,7 +57,7 @@ function BountySubmissionDetailsSheetContent({
onSuccess: async () => {
toast.success("Bounty submission approved successfully!");
onNext ? onNext() : setIsOpen(false);
- await mutatePrefix("/api/bounties");
+ await mutatePrefix(`/api/bounties/${bounty?.id}/submissions`);
},
onError({ error }) {
toast.error(error.serverError);