Skip to content

Conversation

@iversonLv
Copy link
Contributor

PR for issue #294

styleName={getSelectorStyle(selectedView, 'SUBMISSIONS', trackLower)}
>
SUBMISSIONS
>SUBMISSIONS {numSubmissions ? `(${numSubmissions})` : ''}
Copy link
Collaborator

Choose a reason for hiding this comment

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

No need to make a check here, I believe: you have already specified in ChallengeViewSelector.defaultProps that default for numSubmissions is zero. So, even if no value is passed by parent component via props, it will be automatically set to 0 anyway, so you can just render {numSubmissions}. Please, change, and double-check that it works fine.

@birdofpreyru birdofpreyru merged commit 6806aa2 into develop Aug 30, 2017
@birdofpreyru birdofpreyru deleted the issue294 branch October 7, 2017 17:06
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.

3 participants