Skip to content

Commit

Permalink
Handle case of display spinner forever when get token and then clean …
Browse files Browse the repository at this point in the history
…cookies
  • Loading branch information
gkatrakazas committed Jul 5, 2024
1 parent 74f7d60 commit 592fe0b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/PrivateRoute.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const PrivateRoute = ({ children }) => {
console.log('FCM Token success:', fcmToken);
} else {
console.log('FCM Token failed to get fcmtoken in private route', fcmToken);
setTokenSentInSession(false)
}
} catch (error) {
console.error('Error sending FCM token to the backend:', error);
Expand Down

0 comments on commit 592fe0b

Please sign in to comment.