mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
fix: merge with remote games setting 1970 sometimes
This commit is contained in:
parent
b115bf632a
commit
fb416b6483
1 changed files with 2 additions and 1 deletions
|
@ -19,7 +19,8 @@ export const mergeWithRemoteGames = async () => {
|
|||
if (localGame) {
|
||||
const updatedLastTimePlayed =
|
||||
localGame.lastTimePlayed == null ||
|
||||
new Date(game.lastTimePlayed) > localGame.lastTimePlayed
|
||||
(game.lastTimePlayed &&
|
||||
new Date(game.lastTimePlayed) > localGame.lastTimePlayed)
|
||||
? new Date(game.lastTimePlayed)
|
||||
: localGame.lastTimePlayed;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue