Skip to content

Commit 42e7a6e

Browse files
committed
fix missing for pantry path situ
1 parent dd87853 commit 42e7a6e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/hooks/usePantry.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,10 @@ export default function usePantry() {
181181
return undefined
182182
}
183183

184-
const missing = () => !prefix.exists()
184+
const missing = () => !pantry_paths().some(x => x.exists())
185185

186186
const neglected = () => {
187+
if (!prefix.exists()) return true
187188
const stat = Deno.statSync(prefix.string)
188189
if (!stat.mtime) return true
189190
return (Date.now() - stat.mtime.getTime()) > 24 * 60 * 60 * 1000

0 commit comments

Comments
 (0)