diff --git a/packages/app/src/useCopy.ts b/packages/app/src/useCopy.ts index c7cfda5fb..32892ac35 100644 --- a/packages/app/src/useCopy.ts +++ b/packages/app/src/useCopy.ts @@ -8,7 +8,7 @@ export const useCopy = (timeout = 2000) => { setError(false); try { if (navigator.clipboard && window.isSecureContext) { - navigator.clipboard.writeText(text); + await navigator.clipboard.writeText(text); } else { const textArea = document.createElement("textarea"); textArea.value = text;