Skip to content

Commit

Permalink
fix: prevent build from crashing when GO battle league is over
Browse files Browse the repository at this point in the history
  • Loading branch information
na-ji committed Mar 10, 2023
1 parent b7bdff0 commit ac2e580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/leaderboard/api/periodLeaderboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const periodLeaderboardQuery = `
trainer.battles_won - trainer_history.battles_won AS battles_won,
trainer.km_walked - trainer_history.km_walked AS km_walked,
trainer.caught_pokemon - trainer_history.caught_pokemon AS caught_pokemon,
trainer.gbl_rank - trainer_history.gbl_rank AS gbl_rank,
Cast(trainer.gbl_rank AS SIGNED) - Cast(trainer_history.gbl_rank AS SIGNED) AS gbl_rank,
Cast(trainer.gbl_rating AS SIGNED) - Cast(trainer_history.gbl_rating AS SIGNED) AS gbl_rating,
trainer.stops_spun - trainer_history.stops_spun AS stops_spun,
trainer.evolved - trainer_history.evolved AS evolved,
Expand Down

1 comment on commit ac2e580

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for pogo-leaderboard ready!

✅ Preview
https://pogo-leaderboard-nzbm7xoef-na-ji.vercel.app
https://main-pogo-leaderboard.vercel.app

Built with commit ac2e580.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.