diff options
author | Ivan Chen <ivan@tagg.id> | 2021-04-02 11:38:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-02 11:38:50 -0400 |
commit | 857bede6a08e97af7609a738b4daf633a46baba1 (patch) | |
tree | 2e6a1d1db1ae6a1d6085cb32d1213ad6244d941e /src | |
parent | f570f6c75ff051e9f8afe359a237a05828dc6ffb (diff) | |
parent | fb63d7e990f1fa97d630ec83ce4106326bcb4aef (diff) |
Merge pull request #351 from IvanIFChen/hotfix-cleanup-master-logs
[HOTFIX] Updated useEffect to only run once
Diffstat (limited to 'src')
-rw-r--r-- | src/routes/Routes.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx index c7b9aeee..819ca785 100644 --- a/src/routes/Routes.tsx +++ b/src/routes/Routes.tsx @@ -50,7 +50,7 @@ const Routes: React.FC = () => { fcmService.setUpPushNotifications(); fcmService.sendFcmTokenToServer(); } - }); + }, []); useEffect(() => { const checkVersion = async () => { @@ -61,7 +61,7 @@ const Routes: React.FC = () => { } }; checkVersion(); - }); + }, []); return userId && !newVersionAvailable ? <NavigationBar /> : <Onboarding />; }; |