-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Frontend codacy errors #63
Conversation
293b62d
to
1445ff6
Compare
} else { | ||
try { | ||
await firebase.messaging().requestPermission(); | ||
console.log('FCM permission granted'); | ||
logger.log('FCM permission granted'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to me that react-native-logger is perhaps not the best logger to use if you cannot even distinguish between different log levels (i.e. debug, info, warn, error, etc). May want to try out js-logger, like used in the backend.
I've set stuff up so that it also prints out which module the log comes from, which is very useful.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed/refactored code to comply with codacy and eslint