Skip to content

Commit

Permalink
fix: market buy and sell UI bugs (#216)
Browse files Browse the repository at this point in the history
* fix: update order form to conditionally set isApproximately based on asset amounts

# Conflicts:
#	src/pages/trade/ui/order-form/order-form-market.tsx

* fix: lints
  • Loading branch information
vacekj authored Dec 18, 2024
1 parent 82ff5f4 commit b12be80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/trade/ui/order-form/order-form-market.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export const MarketOrderForm = observer(({ parentStore }: { parentStore: OrderFo
value={store.baseInput}
onChange={store.setBaseInput}
isEstimating={store.baseEstimating}
isApproximately={isBuy}
isApproximately={isBuy && store.baseInputAmount !== 0}
denominator={store.baseAsset?.symbol}
/>
</div>
Expand All @@ -76,7 +76,7 @@ export const MarketOrderForm = observer(({ parentStore }: { parentStore: OrderFo
value={store.quoteInput}
onChange={store.setQuoteInput}
isEstimating={store.quoteEstimating}
isApproximately={!isBuy}
isApproximately={!isBuy && store.quoteInputAmount !== 0}
denominator={store.quoteAsset?.symbol}
/>
</div>
Expand Down

0 comments on commit b12be80

Please sign in to comment.