Skip to content

Add competitions number to the competitions listing - #128

Merged
jonatanklosko merged 2 commits into
jonatanklosko:masterfrom
samuelcube:number-lenght-competitions
Sep 16, 2026
Merged

jonatanklosko merged 2 commits into
jonatanklosko:masterfrom
samuelcube:number-lenght-competitions

Conversation

@samuelcube

Copy link
Copy Markdown
Contributor
Screenshot 2026-09-16 203011

Small Number

return (
<Paper>
<List subheader={<ListSubheader>Your competitions</ListSubheader>}>
<List subheader={<ListSubheader>Your competitions {competitionCount == 0 ? '' : `${competitionCount}`}</ListSubheader>}>

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

We can use competitions.length directly instead of using separate useState. Also, it seems to be missing parentheses, which are present on the screenshot?

@samuelcube samuelcube Sep 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks, that helped! I’ve fixed it.

@jonatanklosko jonatanklosko changed the title Small Number of Count at Your competitions Add competitions number to the competitions listing Sep 16, 2026
@jonatanklosko
jonatanklosko merged commit 7bdd14e into jonatanklosko:master Sep 16, 2026
5 checks passed
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.

2 participants