Skip to content

Commit

Permalink
fix: (useCopyToClipboard): copyToClipboard should return promise
Browse files Browse the repository at this point in the history
  • Loading branch information
kendrickw committed Jun 20, 2024
1 parent 90fbbb4 commit 9f83b2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ export function useCopyToClipboard() {
}
};

handleCopy();
return handleCopy();
}, []);

return [state, copyToClipboard];
Expand Down

0 comments on commit 9f83b2b

Please sign in to comment.