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 transfer-link-modal.tsx

Steven Teya7eefe477ccc
diff --git a/apps/web/ui/modals/transfer-link-modal.tsx b/apps/web/ui/modals/transfer-link-modal.tsx
index ce886d6cb9..a96d3961bf 100644
--- a/apps/web/ui/modals/transfer-link-modal.tsx
+++ b/apps/web/ui/modals/transfer-link-modal.tsx
@@ -63,7 +63,8 @@ function TransferLinkModal({
setShowTransferLinkModal(false);
return true;
} else {
- throw new Error((await res.json()).message);
+ const error = await res.json();
+ throw new Error(error.message);
}
});
};