fix: only track opening of menu

This commit is contained in:
Christel Westerberg
2024-07-18 16:14:56 +02:00
parent 2457314003
commit dff876f091

View File

@@ -39,7 +39,11 @@ export function MainMenu({
} = useDropdownStore()
function handleMyPagesMobileMenuClick() {
trackClick("profile picture icon")
// Only track click when opening it
if (!isMyPagesMobileMenuOpen) {
trackClick("profile picture icon")
}
toggleMyPagesMobileMenu()
}