File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/apps/profiles/src/components/tc-achievements/SubTrackSummaryCard Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import classNames from 'classnames'
33
44import { IconSolid } from '~/libs/ui'
55
6- import { subTrackLabelToHumanName , WinnerIcon } from '../../../lib'
6+ import { formatPlural , subTrackLabelToHumanName , WinnerIcon } from '../../../lib'
77
88import styles from './SubTrackSummaryCard.module.scss'
99
@@ -29,7 +29,9 @@ const SubTrackSummaryCard: FC<SubTrackSummaryCardProps> = props => (
2929 { props . wins }
3030 </ span >
3131 < span className = { styles . statsItemLabel } >
32- < span className = 'label' > wins</ span >
32+ < span className = 'label' >
33+ { formatPlural ( props . wins || 0 , 'Win' ) }
34+ </ span >
3335 </ span >
3436 </ div >
3537 ) }
@@ -38,7 +40,9 @@ const SubTrackSummaryCard: FC<SubTrackSummaryCardProps> = props => (
3840 { props . submissions }
3941 </ span >
4042 < span className = { styles . statsItemLabel } >
41- < span className = 'label' > submissions</ span >
43+ < span className = 'label' >
44+ { formatPlural ( props . submissions || 0 , 'Submission' ) }
45+ </ span >
4246 </ span >
4347 </ div >
4448 </ div >
You can’t perform that action at this time.
0 commit comments