diff --git a/src/Components/Misc/SupportMe.tsx b/src/Components/Misc/SupportMe.tsx index e9a6346..38e5564 100644 --- a/src/Components/Misc/SupportMe.tsx +++ b/src/Components/Misc/SupportMe.tsx @@ -55,6 +55,8 @@ export const SupportMe = () => { const toggleDrawer = (open: boolean) => (event: React.KeyboardEvent | React.MouseEvent) => { + analytics.trackEvent('toggle_support_drawer'); + if ( event.type === 'keydown' && ((event as React.KeyboardEvent).key === 'Tab' || diff --git a/src/Components/PlayerMenu/Settings.tsx b/src/Components/PlayerMenu/Settings.tsx index d9f3070..77e1bd3 100644 --- a/src/Components/PlayerMenu/Settings.tsx +++ b/src/Components/PlayerMenu/Settings.tsx @@ -168,6 +168,7 @@ const Settings = ({ player, onChange, resetCurrentGame }: SettingsProps) => { }; const handleNewGame = () => { + handleResetGame(); localStorage.removeItem('players'); localStorage.removeItem('playing'); localStorage.removeItem('initialGameSettings'); @@ -292,9 +293,6 @@ const Settings = ({ player, onChange, resetCurrentGame }: SettingsProps) => { -