Avoid sending ga event on focusing column

This commit is contained in:
Fumiaki MATSUSHIMA
2019-04-29 19:03:27 +09:00
parent 6aa24bb966
commit 8b1392806f

View File

@@ -313,9 +313,11 @@ export const MainScreen = React.memo(() => {
[currentOpenedModal],
)
if (!currentOpenedModal) {
analytics.trackScreenView('MAIN_SCREEN')
}
useEffect(() => {
if (!currentOpenedModal) {
analytics.trackScreenView('MAIN_SCREEN')
}
}, [currentOpenedModal])
return (
<Screen statusBarBackgroundThemeColor="header" useSafeArea={false}>