Skip to content

Commit

Permalink
Add missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
v0l committed Sep 29, 2023
1 parent e165ce2 commit c4f40b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/app/src/useCopy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c4f40b5

Please sign in to comment.