Skip to content

Commit 9455ca3

Browse files
committed
fix useConvertPriceToUSD always disabled
1 parent 3da0609 commit 9455ca3

File tree

1 file changed

+2
-3
lines changed
  • sdk/src/react/ui/modals/_internal/components/priceInput

1 file changed

+2
-3
lines changed

sdk/src/react/ui/modals/_internal/components/priceInput/index.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ export default function PriceInput({
8181
enabled:
8282
orderbookKind === OrderbookKind.opensea &&
8383
!!currencyAddress &&
84-
!!priceAmountRaw &&
85-
!!setOpenseaLowestPriceCriteriaMet,
84+
!!priceAmountRaw,
8685
},
8786
});
8887

@@ -164,7 +163,7 @@ export default function PriceInput({
164163

165164
const openseaLowestPriceCriteriaMet =
166165
orderbookKind === OrderbookKind.opensea &&
167-
!!conversion?.usdAmount &&
166+
conversion?.usdAmount !== undefined &&
168167
conversion.usdAmount >= 0.01;
169168

170169
if (checkBalance?.enabled) {

0 commit comments

Comments
 (0)