fix: only track opening of menu
This commit is contained in:
@@ -39,7 +39,11 @@ export function MainMenu({
|
|||||||
} = useDropdownStore()
|
} = useDropdownStore()
|
||||||
|
|
||||||
function handleMyPagesMobileMenuClick() {
|
function handleMyPagesMobileMenuClick() {
|
||||||
|
// Only track click when opening it
|
||||||
|
if (!isMyPagesMobileMenuOpen) {
|
||||||
trackClick("profile picture icon")
|
trackClick("profile picture icon")
|
||||||
|
}
|
||||||
|
|
||||||
toggleMyPagesMobileMenu()
|
toggleMyPagesMobileMenu()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user