Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Jan 30, 2024
1 parent 1d78f36 commit f5bbae1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hooks/usePantry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,14 @@ export default function usePantry() {
/// only use cache if PKGX_PANTRY_PATH is not set
if (is_cache_available) {
const cached = await cache_provides(name)
if (cached) {
if (cached?.length) {
return cached.map(x => ({
...project(x),
project: x
}))
}

// else we need to still check for display-names
}

name = name.toLowerCase()
Expand Down

0 comments on commit f5bbae1

Please sign in to comment.