diff options
author | Ivan Chen <ivan@tagg.id> | 2021-02-05 15:29:15 -0500 |
---|---|---|
committer | Ivan Chen <ivan@tagg.id> | 2021-02-05 15:29:15 -0500 |
commit | 94d38350ba0bcfd0bc3095d8628de67fbe6ee6dc (patch) | |
tree | c2935f718bb1a0ac0ee3b925b35ea4e41d48916a | |
parent | 2c69c7a49fcbc92fa1024a0e83c3bad669672e91 (diff) |
always send token
-rw-r--r-- | src/routes/Routes.tsx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/routes/Routes.tsx b/src/routes/Routes.tsx index 768a7604..a5383a47 100644 --- a/src/routes/Routes.tsx +++ b/src/routes/Routes.tsx @@ -14,7 +14,6 @@ const Routes: React.FC = () => { user: {userId}, } = useSelector((state: RootState) => state.user); const dispatch = useDispatch(); - const {isOnboardedUser} = useSelector((state: RootState) => state.user); /** * Load the user from AsyncStorage if any @@ -42,12 +41,8 @@ const Routes: React.FC = () => { }, [dispatch, userId]); useEffect(() => { - // after onboarding, or user signed in (after reinstall) if (userId) { fcmService.setUpPushNotifications(); - } - // user just onboarded - if (isOnboardedUser) { fcmService.sendFcmTokenToServer(); } }); |