diff --git a/frontend/src/pages/accounts/settings.page.tsx b/frontend/src/pages/accounts/settings.page.tsx index f25e9312c0..ffaf40685b 100644 --- a/frontend/src/pages/accounts/settings.page.tsx +++ b/frontend/src/pages/accounts/settings.page.tsx @@ -126,7 +126,7 @@ const Settings: NextPage = () => { ) : null; - const copyApiKeyToClipboard = (e: Event) => { + const copyApiKeyToClipboard = (e: MouseEvent) => { // This preventDefault was necessary to stop the form from submitting e.preventDefault(); navigator.clipboard.writeText(profile.api_token);