Skip to content

Commit c299619

Browse files
committed
Fix usePantry().neglected
1 parent 421b928 commit c299619

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/hooks/usePantry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default function usePantry() {
154154
const neglected = () => {
155155
const stat = Deno.statSync(prefix.string)
156156
if (!stat.mtime) return true
157-
return (Date.now() - stat.mtime.getMilliseconds()) > 24 * 60 * 60 * 1000
157+
return (Date.now() - stat.mtime.getTime()) > 24 * 60 * 60 * 1000
158158
}
159159

160160
return {

0 commit comments

Comments
 (0)