-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Correctly handle removal of unimportant cached files
Previous implementation was incorrect because `lastOpened` prop was stored as a string in the device's storage and so it was retrieved as string Then the date-fns `differenceInMonths` was failing comparing dates as it accepts only `Date` objects and no string This commit fixes this by parsing the persisted date into a `Date` and by fixing related TS typings
- Loading branch information
Showing
2 changed files
with
50 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters