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.

fixes

Steven Teyc6b17edcf078
diff --git a/apps/web/lib/swr/use-domains.ts b/apps/web/lib/swr/use-domains.ts
index 92a04984c8..658c3f92ef 100644
--- a/apps/web/lib/swr/use-domains.ts
+++ b/apps/web/lib/swr/use-domains.ts
@@ -35,8 +35,10 @@ export default function useDomains({ domain }: { domain?: string } = {}) {
SHORT_DOMAIN;
const verified = domain
- ? // If a domain is passed, check if it's verified (using `allActiveDomains` cause it could be `dub.sh`)
- allActiveDomains.find((d) => d.slug === domain)?.verified
+ ? // If a domain is passed, check if it's verified
+ [...allActiveDomains, ...(archivedProjectDomains || [])].find(
+ (d) => d.slug === domain,
+ )?.verified
: // If no domain is passed, check if any of the project domains are verified
projectDomains?.some((d) => d.verified);
diff --git a/apps/web/ui/links/link-card.tsx b/apps/web/ui/links/link-card.tsx
index eaffafca01..a96f6e17d6 100644
--- a/apps/web/ui/links/link-card.tsx
+++ b/apps/web/ui/links/link-card.tsx
@@ -256,7 +256,7 @@ export default function LinkCard({
*/}
<div className="ml-2 sm:ml-4">
<div className="flex max-w-fit items-center space-x-2">
- {slug && !verified && !loading ? (
+ {!verified && !loading ? (
<Tooltip
content={
<TooltipContent
diff --git a/apps/web/ui/projects/project-card.tsx b/apps/web/ui/projects/project-card.tsx
index 088b359677..2556044129 100644
--- a/apps/web/ui/projects/project-card.tsx
+++ b/apps/web/ui/projects/project-card.tsx
@@ -62,7 +62,7 @@ export default function ProjectCard({
migrated to a custom project.
</p>
<a
- href={`${HOME_DOMAIN}/changelog/projects`}
+ href={`${HOME_DOMAIN}/changelog/dub-links-updates`}
target="_blank"
className="mt-1 block text-gray-500 underline underline-offset-4 hover:text-gray-800"
>