fix: warning user creation

This commit is contained in:
Alexandre Bodin 2024-09-16 19:17:31 +02:00
parent 860b3bae00
commit b0c657a2c9

View File

@ -21,7 +21,9 @@ const MagicLinkWrapper = ({ children, target }: MagicLinkWrapperProps) => {
defaultMessage: 'Copy to clipboard',
});
const handleClick = async () => {
const handleClick = async (e: React.MouseEvent<HTMLButtonElement>) => {
e.preventDefault();
const didCopy = await copy(target);
if (didCopy) {