abesto / ams2-career

https://ams2-career.abesto.net
The Unlicense
6 stars 1 forks source link

Changelog: store seen version outside game save data #53

Closed abesto closed 2 years ago

abesto commented 2 years ago

Currently the version last seen is stored as part of the game save data, which means uploading a save from an older version of the app triggers a changelog popup. Not the end of the world, but this shouldn't happen.

The most direct way to fix this is probably to add special-casing in src/store/saveload.ts, in both the save and the load functions, such that the last seen version is pulled / pushed into Redux state on load / save, but is stored in a separate local storage item.