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.

debounce linklogo updates

Steven Teya731ca2168bd
diff --git a/apps/web/ui/modals/add-edit-link-modal/index.tsx b/apps/web/ui/modals/add-edit-link-modal/index.tsx
index a0e9504e67..07f60e4e9b 100644
--- a/apps/web/ui/modals/add-edit-link-modal/index.tsx
+++ b/apps/web/ui/modals/add-edit-link-modal/index.tsx
@@ -393,7 +393,7 @@ function AddEditLinkModal({
onScroll={handleScroll}
>
<div className="sticky top-0 z-20 flex h-14 items-center justify-center gap-4 space-y-3 border-b border-gray-200 bg-white px-4 transition-all sm:h-24 md:px-16">
- <LinkLogo apexDomain={getApexDomain(url)} />
+ <LinkLogo apexDomain={getApexDomain(debouncedUrl)} />
<h3 className="!mt-0 max-w-sm truncate text-lg font-medium">
{props ? `Edit ${shortLink}` : "Create a new link"}
</h3>