1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Minor fixes according to DeepScan

GitHub actions'a Mac is without connectivity again..
This commit is contained in:
Zhiyuan Zheng
2021-03-09 01:24:33 +01:00
parent e1e4aace78
commit 4afdaf84c1
3 changed files with 10 additions and 12 deletions

View File

@ -30,9 +30,9 @@ const ScreenMeSettingsPush: React.FC = () => {
}
useEffect(() => {
checkPush()
AppState.addEventListener('change', () => checkPush())
AppState.addEventListener('change', checkPush)
return () => {
AppState.removeEventListener('change', () => checkPush())
AppState.removeEventListener('change', checkPush)
}
}, [])