From 6e747ff826496bf2d204f20568b16c86517091ab Mon Sep 17 00:00:00 2001 From: Stephanie Egbuonu <100955511+stephanniegb@users.noreply.github.com> Date: Tue, 17 Sep 2024 11:07:26 +0100 Subject: [PATCH] Update AddressBar.tsx --- frontend/src/app/components/lib/AddressBar.tsx | 9 --------- 1 file changed, 9 deletions(-) diff --git a/frontend/src/app/components/lib/AddressBar.tsx b/frontend/src/app/components/lib/AddressBar.tsx index 3e49028..1cc51d5 100644 --- a/frontend/src/app/components/lib/AddressBar.tsx +++ b/frontend/src/app/components/lib/AddressBar.tsx @@ -14,20 +14,11 @@ import CopyButton from "../internal/util/CopyButton"; const UserModal = () => { const { address } = useAccount(); const { disconnect } = useDisconnect(); - const [isCopied, setIsCopied] = useState(false); const [imageError, setImageError] = useState(false); const { data: starkProfile } = useStarkProfile({ address, }); - useEffect(() => { - const id = setTimeout(() => { - setIsCopied(false); - }, 1500); - - return () => clearTimeout(id); - }, [isCopied]); - return (