Skip to content

Commit bdf5163

Browse files
Merge pull request #4899 from rashmi73/issue_4687
issue 4687 fix
2 parents 1f09579 + ea282e2 commit bdf5163

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

__tests__/shared/components/ProfilePage/__snapshots__/index.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ exports[`renders a full Profile correctly 1`] = `
5858
}
5959
onShowBadges={[Function]}
6060
showBadgesButton={true}
61-
wins={3}
61+
wins={0}
6262
/>
6363
</div>
6464
</Sticky>

src/shared/components/ProfilePage/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ class ProfilePage extends React.Component {
192192
info={info}
193193
onShowBadges={() => this.setState({ badgesModalOpen: true })}
194194
showBadgesButton={achievements && achievements.length > 0}
195-
wins={_.get(stats, 'wins', 0)}
195+
wins={_.get((stats && stats[0]) || {}, 'wins', 0)}
196196
/>
197197
</div>
198198
</Sticky>

0 commit comments

Comments
 (0)