mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-20 17:53:55 +00:00
fix: lastTimePlayed not updating correctly when merging games
This commit is contained in:
@@ -22,7 +22,8 @@ export const mergeWithRemoteGames = async () => {
|
||||
const updatedLastTimePlayed =
|
||||
localGame.lastTimePlayed == null ||
|
||||
(game.lastTimePlayed &&
|
||||
new Date(game.lastTimePlayed) > localGame.lastTimePlayed)
|
||||
new Date(game.lastTimePlayed) >
|
||||
new Date(localGame.lastTimePlayed))
|
||||
? game.lastTimePlayed
|
||||
: localGame.lastTimePlayed;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user