We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dd87853 commit 42e7a6eCopy full SHA for 42e7a6e
1 file changed
src/hooks/usePantry.ts
@@ -181,9 +181,10 @@ export default function usePantry() {
181
return undefined
182
}
183
184
- const missing = () => !prefix.exists()
+ const missing = () => !pantry_paths().some(x => x.exists())
185
186
const neglected = () => {
187
+ if (!prefix.exists()) return true
188
const stat = Deno.statSync(prefix.string)
189
if (!stat.mtime) return true
190
return (Date.now() - stat.mtime.getTime()) > 24 * 60 * 60 * 1000
0 commit comments