From 831935b283ff0182f7a149c5eeae33e7384e49ff Mon Sep 17 00:00:00 2001 From: Milan Date: Wed, 13 Jan 2021 13:07:53 +0100 Subject: [PATCH] feat(simple-buy): when comparing string numbers convert it to numbers and then compare --- .../SimpleBuy/EnterAmount/Checkout/template.success.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/blockchain-wallet-v4-frontend/src/modals/SimpleBuy/EnterAmount/Checkout/template.success.tsx b/packages/blockchain-wallet-v4-frontend/src/modals/SimpleBuy/EnterAmount/Checkout/template.success.tsx index e317d499703..cd7a96b26bc 100644 --- a/packages/blockchain-wallet-v4-frontend/src/modals/SimpleBuy/EnterAmount/Checkout/template.success.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/modals/SimpleBuy/EnterAmount/Checkout/template.success.tsx @@ -423,7 +423,7 @@ const Success: React.FC & Props> = props => { {(!props.isSddFlow || props.orderType === 'SELL') && props.pair && - min <= max && ( + Number(min) <= Number(max) && ( <> {amtError === 'BELOW_MIN' ? ( @@ -456,7 +456,7 @@ const Success: React.FC & Props> = props => { )} - {props.orderType === 'SELL' && props.pair && min > max && ( + {props.orderType === 'SELL' && props.pair && Number(min) > Number(max) && (