Skip to content

Commit

Permalink
Trying changing possibleCachedTokenPrices filtering null values
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrila committed Mar 6, 2024
1 parent 88899cf commit 2c92f7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netlify/functions/tokenPrices.mts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default async function getTokenPrices(request: Request) {
// TokenPricesWithMetadata. All of these TokenPrices will be either
// expired or unexpired.
const allCachedTokenPrices = possibleCachedTokenPrices.filter(
(possible): possible is TokenPriceWithMetadata => possible !== null
(possible): possible is TokenPriceWithMetadata => !!possible
);

// Let's pull out all of the unexpired TokenPrices from our cache.
Expand Down

0 comments on commit 2c92f7b

Please sign in to comment.