aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-02-05 15:29:15 -0500
committerIvan Chen <ivan@tagg.id>2021-02-05 15:29:15 -0500
commit94d38350ba0bcfd0bc3095d8628de67fbe6ee6dc (patch)
treec2935f718bb1a0ac0ee3b925b35ea4e41d48916a /src
parent2c69c7a49fcbc92fa1024a0e83c3bad669672e91 (diff)
always send token
Diffstat (limited to 'src')
-rw-r--r--src/routes/Routes.tsx5
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();
}
});