aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-04-02 11:38:50 -0400
committerGitHub <noreply@github.com>2021-04-02 11:38:50 -0400
commit857bede6a08e97af7609a738b4daf633a46baba1 (patch)
tree2e6a1d1db1ae6a1d6085cb32d1213ad6244d941e
parentf570f6c75ff051e9f8afe359a237a05828dc6ffb (diff)
parentfb63d7e990f1fa97d630ec83ce4106326bcb4aef (diff)
Merge pull request #351 from IvanIFChen/hotfix-cleanup-master-logs
[HOTFIX] Updated useEffect to only run once
-rw-r--r--src/routes/Routes.tsx4
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 />;
};