Skip to content
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

Merged
merged 10 commits into from
Nov 2, 2019
Merged

Frontend codacy errors #63

merged 10 commits into from
Nov 2, 2019

Conversation

michaelfu1029
Copy link
Collaborator

Fixed/refactored code to comply with codacy and eslint

} else {
try {
await firebase.messaging().requestPermission();
console.log('FCM permission granted');
logger.log('FCM permission granted');
Copy link
Collaborator

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#64

frontend/src/App.jsx Show resolved Hide resolved
frontend/src/constants/images.jsx Outdated Show resolved Hide resolved
frontend/src/screens/EditFriends.jsx Outdated Show resolved Hide resolved
frontend/src/screens/SendLikedJobs.jsx Outdated Show resolved Hide resolved
frontend/src/screens/SignIn.jsx Outdated Show resolved Hide resolved
frontend/src/App.jsx Show resolved Hide resolved
@michaelfu1029 michaelfu1029 merged commit 0f29bca into master Nov 2, 2019
@viickif viickif deleted the frontend-codacy branch November 2, 2019 23:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants