diff --git a/app/routes/short-links.tsx b/app/routes/short-links.tsx index 85f0372..d61a6a9 100644 --- a/app/routes/short-links.tsx +++ b/app/routes/short-links.tsx @@ -103,17 +103,17 @@ export default function () { return ( {entry.destination} - { - navigator.clipboard.writeText( - encodeURIComponent( - `https://carcrushe.rs/${entry.path}`, - ), - ); - alert("Link copied"); - }} - > - https://carcrushe.rs/{entry.path} + + { + await navigator.clipboard.writeText( + `https://carcrushe.rs/${encodeURIComponent(entry.path)}`, + ); + alert("Link copied"); + }} + > + https://carcrushe.rs/{entry.path} +