Skip to content

Commit

Permalink
Fix for hasOwn property (#302)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrvecera committed Jul 9, 2023
1 parent b050c6b commit 3970a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/web/src/pages/players/player-card/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const mergeLadderDataAndHistoricData = (

for (const stat of data.leaderboardStats) {
const key = `${stat.statgroup_id}-${stat.leaderboard_id}`;
if (Object.hasOwn(historicLeaderboardStats, key)) {
if (historicLeaderboardStats.hasOwnProperty(key)) {
stat.historic = historicLeaderboardStats[key];
}
}
Expand Down

0 comments on commit 3970a59

Please sign in to comment.