Skip to content

Commit 8935434

Browse files
committed
fix placement label/value
1 parent a5f6f43 commit 8935434

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/shared/components/Leaderboard/ChallengeHistoryModal/index.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ class ChallengeHistoryModal extends Component {
4040
const { sortParam } = this.state;
4141
const challengesOrdered = _.orderBy(challenges, [sortParam.field], [sortParam.order]);
4242
// eslint-disable-next-line
43-
const placeLabel = competitor['member_profile_basic.handle'] ? (competitor['tco23_leaderboard.placement'] ? 'tco23_leaderboard.placement' : 'tco_leaderboard.placement') : 'place';
43+
const placeLabel = competitor['tco23_leaderboard.challenge_count'] ? 'tco23_leaderboard.placement' : 'tco_leaderboard.placement';
4444
// eslint-disable-next-line
45-
const pointsLabel = competitor['member_profile_basic.handle'] ? (competitor['tco23_leaderboard.tco_points'] ? 'tco23_leaderboard.tco_points' : 'tco_leaderboard.tco_points') : 'points';
45+
const pointsLabel = competitor['tco23_leaderboard.tco_points'] ? 'tco23_leaderboard.tco_points' : 'tco_leaderboard.tco_points';
4646
const styles = THEMES[themeName] || THEMES.Default;
4747
/* eslint-disable no-confusing-arrow */
4848
const sortInner = () => themeName === 'TCO23' ? (

src/shared/components/Leaderboard/PodiumSpot/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export default function PodiumSpot(props) {
224224
</div>
225225
) : null
226226
}
227-
<div styleName={`${stylesName}.stats`}>
227+
<div styleName={`${stylesName}.stats`} style={{ alignItems: 'flex-start' }}>
228228
<span styleName={`${stylesName}.value`}>{formatPoints(tcoPoints)}</span>
229229
<span styleName={`${stylesName}.value-title`}>points</span>
230230
</div>

0 commit comments

Comments
 (0)