Unverified Commit b99b7cb3 authored by benguedj's avatar benguedj Committed by GitHub
Browse files

fix: 🐛 Corrige l'envoie de la stat "Ouverture de l'app" (#548)

 Closes: #518
parent 17b39ef7
......@@ -72,12 +72,8 @@ const App: FC = () => {
);
};
const appState = useRef(AppState.currentState);
const handleAppStateChange = (nextAppState: AppStateStatus) => {
if (
/inactive|background/.exec(appState.current) &&
nextAppState === "active"
) {
if (nextAppState === "active") {
void updateAppActiveCounter();
}
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment