From a44a3a1f2e2392c016169e69620221e7d4db165b Mon Sep 17 00:00:00 2001
From: Mumble <kimjoanne@protonmail.com>
Date: Wed, 24 Jul 2024 11:54:20 -0700
Subject: [PATCH] Update src/system/game-stats.ts

Co-authored-by: flx-sta <50131232+flx-sta@users.noreply.github.com>
---
 src/system/game-stats.ts | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/system/game-stats.ts b/src/system/game-stats.ts
index d4f50cba7e0..a8b74f29bb7 100644
--- a/src/system/game-stats.ts
+++ b/src/system/game-stats.ts
@@ -58,9 +58,9 @@ export class GameStats {
     this.pokemonCaught = source?.pokemonCaught || 0;
     this.pokemonHatched = source?.pokemonHatched || 0;
     // Currently handled by migration
-    this.subLegendaryPokemonSeen = source?.subLegendaryPokemonSeen || 0;
-    this.subLegendaryPokemonCaught = source?.subLegendaryPokemonCaught || 0;
-    this.subLegendaryPokemonHatched = source?.subLegendaryPokemonHatched || 0;
+    this.subLegendaryPokemonSeen = source?.subLegendaryPokemonSeen ?? 0;
+    this.subLegendaryPokemonCaught = source?.subLegendaryPokemonCaught ?? 0;
+    this.subLegendaryPokemonHatched = source?.subLegendaryPokemonHatched ?? 0;
     this.legendaryPokemonSeen = source?.legendaryPokemonSeen || 0;
     this.legendaryPokemonCaught = source?.legendaryPokemonCaught || 0;
     this.legendaryPokemonHatched = source?.legendaryPokemonHatched || 0;