Skip to content

Commit

Permalink
fix: mint is in range card bug (decentraland#1776)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo authored Jun 9, 2023
1 parent e482433 commit 129e10b
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions webapp/src/components/AssetCard/utils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,14 @@ function getIsMintPriceInRange(
appliedFilters: Pick<BrowseOptions, 'minPrice' | 'maxPrice'>
) {
return (
!appliedFilters.minPrice ||
(BigNumber.from(asset.price).gte(
ethers.utils.parseUnits(appliedFilters.minPrice)
) &&
(!appliedFilters.maxPrice ||
BigNumber.from(asset.price).lte(
ethers.utils.parseUnits(appliedFilters.maxPrice)
)))
(!appliedFilters.minPrice ||
BigNumber.from(asset.price).gte(
ethers.utils.parseUnits(appliedFilters.minPrice)
)) &&
(!appliedFilters.maxPrice ||
BigNumber.from(asset.price).lte(
ethers.utils.parseUnits(appliedFilters.maxPrice)
))
)
}

Expand Down

0 comments on commit 129e10b

Please sign in to comment.