FIx getGameConfig() failing on profile creation
This commit is contained in:
parent
50629f0cf3
commit
fd365df8ba
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user