diff --git a/src/components/copy-button/copy-button.tsx b/src/components/copy-button/copy-button.tsx index 6e470bca..56d5e680 100644 --- a/src/components/copy-button/copy-button.tsx +++ b/src/components/copy-button/copy-button.tsx @@ -173,5 +173,5 @@ CopyButton.propTypes = { }; CopyButton.isCopySupported = () => { - return Clipboard.isSupported(); + return typeof window === 'undefined' ? false : Clipboard.isSupported(); };