FIx getGameConfig() failing on profile creation

This commit is contained in:
Dev 2023-07-25 10:22:12 +01:00
parent 50629f0cf3
commit fd365df8ba

View File

@ -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;