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.

rearrange

Steven Tey2b342ff046ba
diff --git a/apps/web/app/api/qr/route.tsx b/apps/web/app/api/qr/route.tsx
index 79e83f5ff2..f45ba1670f 100644
--- a/apps/web/app/api/qr/route.tsx
+++ b/apps/web/app/api/qr/route.tsx
@@ -73,11 +73,6 @@ const getQRCodeLogo = async ({
return DUB_QR_LOGO;
}
- // Dub owned domain
- if (isDubDomain(shortLink.domain)) {
- return DUB_QR_LOGO;
- }
-
// hideLogo is set or logo is passed
if (hideLogo || logo) {
const workspace = await getWorkspaceViaEdge(shortLink.projectId);
@@ -93,6 +88,11 @@ const getQRCodeLogo = async ({
return logo;
}
+ // Dub owned domain
+ if (isDubDomain(shortLink.domain)) {
+ return DUB_QR_LOGO;
+ }
+
// if no logo is passed, use domain logo
const domain = await getDomainViaEdge(shortLink.domain);