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 the partner website to avoid linking to 404 page (#3652)

Marcus Farrell3dd69d96961a
diff --git a/apps/web/lib/partners/partner-platforms.ts b/apps/web/lib/partners/partner-platforms.ts
index 5e611cc575..323ec69cf1 100644
--- a/apps/web/lib/partners/partner-platforms.ts
+++ b/apps/web/lib/partners/partner-platforms.ts
@@ -7,7 +7,7 @@ import {
Twitter,
YouTube,
} from "@dub/ui/icons";
-import { getPrettyUrl, nFormatter } from "@dub/utils";
+import { getPrettyUrl, getUrlFromStringIfValid, nFormatter } from "@dub/utils";
import { PartnerPlatformProps } from "../types";
export const PARTNER_PLATFORM_FIELDS: {
@@ -29,7 +29,9 @@ export const PARTNER_PLATFORM_FIELDS: {
return {
value: website ? getPrettyUrl(website.identifier) : null,
verified: !!website?.verifiedAt,
- href: website?.identifier,
+ href: website?.identifier
+ ? getUrlFromStringIfValid(website.identifier)
+ : null,
};
},
},