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 ( <Tr> <Td>{entry.destination}</Td> - <Td - onClick={() => { - navigator.clipboard.writeText( - encodeURIComponent( - `https://carcrushe.rs/${entry.path}`, - ), - ); - alert("Link copied"); - }} - > - https://carcrushe.rs/{entry.path} + <Td> + <Link + onClick={async () => { + await navigator.clipboard.writeText( + `https://carcrushe.rs/${encodeURIComponent(entry.path)}`, + ); + alert("Link copied"); + }} + > + https://carcrushe.rs/{entry.path} + </Link> </Td> <Td> <IconButton