File tree 2 files changed +4
-4
lines changed
src/shared/components/Leaderboard 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -93,15 +93,15 @@ export default function LeaderboardTable(props) {
93
93
< div
94
94
styleName = { `${ stylesName } .handle-link` }
95
95
onClick = { ( ) => onUsernameClick ( competitor ) }
96
- style = { { color : rating ? getRatingColor ( rating ) : null } }
96
+ style = { { color : rating !== undefined ? getRatingColor ( rating ) : null } }
97
97
>
98
98
{ competitor [ 'member_profile_basic.handle' ] || competitor . handle }
99
99
</ div >
100
100
) : (
101
101
< a
102
102
href = { `${ window . origin } /members/${ competitor [ 'member_profile_basic.handle' ] || competitor . handle } /` }
103
103
target = { `${ _ . includes ( window . origin , 'www' ) ? '_self' : '_blank' } ` }
104
- style = { { color : rating ? getRatingColor ( rating ) : null } }
104
+ style = { { color : rating !== undefined ? getRatingColor ( rating ) : null } }
105
105
>
106
106
{ competitor [ 'member_profile_basic.handle' ] || competitor . handle }
107
107
</ a >
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ export default function PodiumSpot(props) {
160
160
< div
161
161
styleName = { `${ stylesName } .handle-link` }
162
162
onClick = { ( ) => onUsernameClick ( competitor ) }
163
- style = { { color : rating ? getRatingColor ( rating ) : null } }
163
+ style = { { color : rating !== undefined ? getRatingColor ( rating ) : null } }
164
164
>
165
165
{ competitor [ 'member_profile_basic.handle' ] || competitor . handle }
166
166
</ div >
@@ -169,7 +169,7 @@ export default function PodiumSpot(props) {
169
169
styleName = { `${ stylesName } .profile-link` }
170
170
href = { `${ window . origin } /members/${ competitor [ 'member_profile_basic.handle' ] || competitor . handle } /` }
171
171
target = { `${ _ . includes ( window . origin , 'www' ) ? '_self' : '_blank' } ` }
172
- style = { { color : rating ? getRatingColor ( rating ) : null } }
172
+ style = { { color : rating !== undefined ? getRatingColor ( rating ) : null } }
173
173
>
174
174
{ competitor [ 'member_profile_basic.handle' ] || competitor . handle }
175
175
</ a >
You can’t perform that action at this time.
0 commit comments