Skip to content

Commit

Permalink
update: tooltip limit order (#2333)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenhoaidanh authored Oct 26, 2023
1 parent 8d0f11d commit 6ba996e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/swapv2/LimitOrder/useValidateInputError.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,13 @@ const useValidateInputError = ({
return (
<Text sx={{ cursor: 'pointer' }}>
<Trans>
You don&apos;t have sufficient {currencyIn?.symbol} balance. After your active orders, you have{' '}
Insufficient {currencyIn?.symbol} balance.
<br />
<Text as="b" color={theme.primary} onClick={() => setInputValue(remainBalance.toExact())}>
{!remainBalance.equalTo(JSBI.BigInt(0)) ? '~' : ''}
{formatNum} {currencyIn?.symbol}
</Text>{' '}
left.
remaining after deducting Active and Open orders.
</Trans>
</Text>
)
Expand Down

0 comments on commit 6ba996e

Please sign in to comment.