Skip to content

Commit

Permalink
remove key from WithLeaderboard component that was causing update errors
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Jan 14, 2024
1 parent b9cfa2a commit 2a1c3ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/HOCs/WithLeaderboard/WithLeaderboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,7 @@ const WithLeaderboard = function(WrappedComponent, initialMonthsPast=1, initialO
render() {
const moreResults = this.state.leaderboard ? this.state.showingCount <= this.state.leaderboard.length : true

return <WrappedComponent key={this.state.fetchId}
{..._omit(this.props, ['fetchLeaderboard', 'fetchLeaderboardForUser', 'fetchReviewerLeaderboard'])}
return <WrappedComponent {..._omit(this.props, ['fetchLeaderboard', 'fetchLeaderboardForUser', 'fetchReviewerLeaderboard'])}
leaderboard={this.state.leaderboard}
leaderboardLoading={this.state.leaderboardLoading}
monthsPast={this.monthsPast()}
Expand Down

0 comments on commit 2a1c3ce

Please sign in to comment.