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 bounty-action-button.tsx

Steven Tey81fca5346981
diff --git a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-action-button.tsx b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-action-button.tsx
index 3900d9ccb3..9daea20c34 100644
--- a/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-action-button.tsx
+++ b/apps/web/app/app.dub.co/(dashboard)/[slug]/(ee)/program/bounties/bounty-action-button.tsx
@@ -30,33 +30,27 @@ export function BountyActionButton({
const { confirmModal: deleteModal, setShowConfirmModal: setShowDeleteModal } =
useConfirmModal({
title: "Delete bounty",
- description: "Are you sure you want to delete this bounty?",
+ description:
+ "Are you sure you want to delete this bounty? This action is irreversible – please proceed with caution.",
onConfirm: async () => {
- toast.promise(
- async () => {
- const response = await fetch(
- `/api/bounties/${bounty.id}?workspaceId=${workspaceId}`,
- {
- method: "DELETE",
- headers: {
- "Content-Type": "application/json",
- },
- },
- );
-
- if (!response.ok) {
- const { error } = await response.json();
- throw new Error(error.message);
- }
-
- await mutatePrefix("/api/bounties");
- },
+ const response = await fetch(
+ `/api/bounties/${bounty.id}?workspaceId=${workspaceId}`,
{
- loading: "Deleting bounty...",
- success: "Bounty deleted successfully!",
- error: (error) => error,
+ method: "DELETE",
+ headers: {
+ "Content-Type": "application/json",
+ },
},
);
+
+ if (!response.ok) {
+ const { error } = await response.json();
+ toast.error(error.message);
+ return;
+ }
+
+ await mutatePrefix("/api/bounties");
+ toast.success("Bounty deleted successfully!");
},
});
diff --git a/packages/email/src/templates/program-application-reminder.tsx b/packages/email/src/templates/program-application-reminder.tsx
index 83d35fa1e6..208478ec49 100644
--- a/packages/email/src/templates/program-application-reminder.tsx
+++ b/packages/email/src/templates/program-application-reminder.tsx
@@ -42,7 +42,7 @@ export default function ProgramApplicationReminder({
</Section>
<Heading className="mx-0 p-0 text-lg font-medium text-neutral-800">
- You're almost ready!
+ Your application is almost complete!
</Heading>
<Text className="text-sm leading-6 text-neutral-600">