We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1f09579 + ea282e2 commit bdf5163Copy full SHA for bdf5163
__tests__/shared/components/ProfilePage/__snapshots__/index.jsx.snap
@@ -58,7 +58,7 @@ exports[`renders a full Profile correctly 1`] = `
58
}
59
onShowBadges={[Function]}
60
showBadgesButton={true}
61
- wins={3}
+ wins={0}
62
/>
63
</div>
64
</Sticky>
src/shared/components/ProfilePage/index.jsx
@@ -192,7 +192,7 @@ class ProfilePage extends React.Component {
192
info={info}
193
onShowBadges={() => this.setState({ badgesModalOpen: true })}
194
showBadgesButton={achievements && achievements.length > 0}
195
- wins={_.get(stats, 'wins', 0)}
+ wins={_.get((stats && stats[0]) || {}, 'wins', 0)}
196
197
198
0 commit comments