From 1b0496ef9fd98eac06029beb80f847cda9bc8f05 Mon Sep 17 00:00:00 2001 From: cnrad Date: Sun, 27 Mar 2022 16:11:25 -0400 Subject: [PATCH] fix copy state cause of prettier bruh --- pages/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pages/index.tsx b/pages/index.tsx index 92ba033..8a64ae8 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -9,8 +9,9 @@ export default function Home() { const [userError, setUserError] = useState(); const [copyState, setCopyState] = useState("Copy"); const copy = () => { - navigator.clipboard.writeText(`[![Discord Presence](https://lanyard.cnrad.dev/api/${userId} - )](https://discord.com/users/${userId})`); + navigator.clipboard.writeText( + `[![Discord Presence](https://lanyard.cnrad.dev/api/${userId})](https://discord.com/users/${userId})` + ); setCopyState("Copied!"); setTimeout(() => setCopyState("Copy"), 1500);