Skip to content

Commit

Permalink
Fix prices
Browse files Browse the repository at this point in the history
- add console.log for debug
  • Loading branch information
samchuk-vlad committed Jan 1, 2024
1 parent 7a13c29 commit def27eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/services/prices.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ export const getPrices = async (ids: string) => {
const forceUpdate = needUpdate && (await needUpdate())
const cacheData = await pricesCache.get(cacheKey)

if (!cacheData) {
console.log('Is Empty cache data: ', !cacheData?.values || !cacheData?.values.length)

if (!cacheData?.values || !cacheData?.values.length) {
await fetchPrices(ids)
}

Expand Down

0 comments on commit def27eb

Please sign in to comment.