diff --git a/website/src/components/copy.js b/website/src/components/copy.js index a59222717..4caabac98 100644 --- a/website/src/components/copy.js +++ b/website/src/components/copy.js @@ -20,7 +20,7 @@ export default function CopyInput({ text, prefix }) { useEffect(() => { setSupportsCopy(isClient && document.queryCommandSupported('copy')) - }, []) + }, [isClient]) const textareaRef = useRef() const [copySuccess, setCopySuccess] = useState(false) const onClick = () => copyToClipboard(textareaRef, setCopySuccess)