-
Notifications
You must be signed in to change notification settings - Fork 69
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
fix: Submission review count shows with none submissions #2273
fix: Submission review count shows with none submissions #2273
Conversation
@flacial is attempting to deploy a commit to the c0d3-prod Team on Vercel. A member of the Team first needs to authorize it. |
Codecov Report
@@ Coverage Diff @@
## master #2273 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 177 177
Lines 3031 3029 -2
Branches 803 806 +3
=========================================
- Hits 3031 3029 -2
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
} | ||
return acc | ||
}, 0) | ||
const submissions = get(data, 'submissions') || [] |
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.
We dont have to do || []
ourselves, lodash provides third parameter for that use case
const submissions = get(data, 'submissions', [])
Closes #2208
Merging this PR will stop the submissions review count from being displayed if there's no submissions.
Before:
After:
To test it:
/curriculum