Skip to content

Commit

Permalink
feat(simple-buy): when comparing string numbers convert it to numbers…
Browse files Browse the repository at this point in the history
… and then compare
  • Loading branch information
milan-bc committed Jan 13, 2021
1 parent e777d92 commit 831935b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -423,7 +423,7 @@ const Success: React.FC<InjectedFormProps<{}, Props> & Props> = props => {

{(!props.isSddFlow || props.orderType === 'SELL') &&
props.pair &&
min <= max && (
Number(min) <= Number(max) && (
<Amounts onClick={handleMinMaxClick}>
<>
{amtError === 'BELOW_MIN' ? (
Expand Down Expand Up @@ -456,7 +456,7 @@ const Success: React.FC<InjectedFormProps<{}, Props> & Props> = props => {
</Amounts>
)}

{props.orderType === 'SELL' && props.pair && min > max && (
{props.orderType === 'SELL' && props.pair && Number(min) > Number(max) && (
<Amounts>
<CustomErrorCartridge
role='button'
Expand Down

0 comments on commit 831935b

Please sign in to comment.