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.

Small tweak

Kiran K4b0ecc4fd84d
diff --git a/apps/web/ui/modals/import-bitly-modal.tsx b/apps/web/ui/modals/import-bitly-modal.tsx
index 89dfbcb04b..f371190065 100644
--- a/apps/web/ui/modals/import-bitly-modal.tsx
+++ b/apps/web/ui/modals/import-bitly-modal.tsx
@@ -48,9 +48,8 @@ function ImportBitlyModal({
refreshWhenHidden: false,
refreshInterval: 0,
onError: (err) => {
- const { error } = JSON.parse(err.message);
- if (error.message !== "No Bitly access token found") {
- toast.error(error.message);
+ if (err.message !== "No Bitly access token found") {
+ toast.error(err.message);
}
},
},