From fd365df8ba358d5a4ec70bad2d56f633fb7ed0b6 Mon Sep 17 00:00:00 2001 From: Dev Date: Tue, 25 Jul 2023 10:22:12 +0100 Subject: [PATCH] FIx getGameConfig() failing on profile creation --- project/src/controllers/GameController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/src/controllers/GameController.ts b/project/src/controllers/GameController.ts index cc43cbad..2fd3e68c 100644 --- a/project/src/controllers/GameController.ts +++ b/project/src/controllers/GameController.ts @@ -245,7 +245,7 @@ export class GameController }, // eslint-disable-next-line @typescript-eslint/naming-convention utc_time: new Date().getTime() / 1000, - totalInGame: profile.Stats.TotalInGameTime + totalInGame: profile.Stats?.TotalInGameTime ?? 0 }; return config;