|
@@ -109,7 +109,6 @@ const Route = () => {
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
const handleAppStateChange = async (nextAppState: string) => {
|
|
const handleAppStateChange = async (nextAppState: string) => {
|
|
if (appState.match(/inactive|background/) && nextAppState === 'active') {
|
|
if (appState.match(/inactive|background/) && nextAppState === 'active') {
|
|
- console.log('Додаток було згорнуто і знову відкрито');
|
|
|
|
await checkNmToken();
|
|
await checkNmToken();
|
|
}
|
|
}
|
|
setAppState(nextAppState);
|
|
setAppState(nextAppState);
|