Skip to content

Commit

Permalink
Update event type for copyApiKeyToClipboard func
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed May 27, 2022
1 parent ba1166c commit 8e41a0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/pages/accounts/settings.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ const Settings: NextPage = () => {
</li>
) : 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);
Expand Down

0 comments on commit 8e41a0f

Please sign in to comment.