Skip to content

Commit

Permalink
safer empty player data check
Browse files Browse the repository at this point in the history
  • Loading branch information
techygrrrl committed Jul 30, 2024
1 parent fead5e8 commit 1e74796
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ function listenForRankUpdatesWithLongPolling() {
return res.json()
})
.then((playerData) => {
if (!playerData.value) {
if (!playerData?.value) {
console.error('no player data')
return
}
Expand Down

0 comments on commit 1e74796

Please sign in to comment.