Skip to content

Commit

Permalink
explorer: show symbol in receive field (#355)
Browse files Browse the repository at this point in the history
* explorer: show symbol in receive field

* Fix lint

---------

Co-authored-by: Jason M. Hasperhoven <[email protected]>
  • Loading branch information
erwanor and JasonMHasperhoven authored Feb 6, 2025
1 parent 9083406 commit 202c0ec
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/pages/trade/ui/order-form/order-form-limit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,10 @@ export const LimitOrderForm = observer(({ parentStore }: { parentStore: OrderFor
/>
<InfoRow
label='Receive'
value={isBuy ? store.baseInput || '--' : store.quoteInput || '--'}
toolTip={
// eslint-disable-next-line no-nested-ternary -- allow nested ternary
store.quoteInput
? isBuy
? `Receive ${store.baseInput} ${store.baseAsset?.symbol}`
: `Receive ${store.quoteInput} ${store.quoteAsset?.symbol}`
: 'Enter the form fields to see the amount.'
value={
isBuy
? `${store.baseInput} ${store.baseAsset?.symbol ?? '--'}`
: `${store.quoteInput} ${store.quoteAsset?.symbol ?? '--'}`
}
/>
</div>
Expand Down

0 comments on commit 202c0ec

Please sign in to comment.