add time
This commit is contained in:
+4
-1
@@ -155,7 +155,10 @@ export class Online {
|
||||
const status = text(game.status)
|
||||
if (id !== pkg.package.game.id || !Object.hasOwn(gameStatuses, status))
|
||||
throw new Error('Сервер вернул неизвестное состояние игры')
|
||||
this.state.game = { key: pkg.key, id, name: text(game.name), status: status as GameStatus }
|
||||
this.state.game = {
|
||||
key: pkg.key, id, name: text(game.name), status: status as GameStatus,
|
||||
startedAt: text(game.startedAt ?? ''), endedAt: text(game.endedAt ?? ''),
|
||||
}
|
||||
this.state.gameError = ''
|
||||
const listed = this.state.games.find(g => g.id === id)
|
||||
if (listed) listed.status = status
|
||||
|
||||
Reference in New Issue
Block a user