From 0b3956919f23227533149941685deafac02bf70c Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Wed, 20 Jan 2021 18:59:06 -0800 Subject: [PATCH] fix isClipboardSupported --- components/CopyMenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/CopyMenu.js b/components/CopyMenu.js index 3e3c157..1d1c721 100644 --- a/components/CopyMenu.js +++ b/components/CopyMenu.js @@ -45,7 +45,7 @@ function CopyEmbed({ mapper, title }) { const popoutStyle = { width: '140px', right: 0 } function useClipboardSupport() { - const [isClipboardSupports, setClipboardSupport] = React.useState(false) + const [isClipboardSupported, setClipboardSupport] = React.useState(false) React.useEffect(() => { setClipboardSupport( @@ -53,7 +53,7 @@ function useClipboardSupport() { ) }, []) - return isClipboardSupports + return isClipboardSupported } function CopyMenu({ isVisible, toggleVisibility, copyImage, carbonRef }) {