diff --git a/src/app/containers/LendBorrowSovryn/components/ButtonGroup/index.tsx b/src/app/containers/LendBorrowSovryn/components/ButtonGroup/index.tsx index 867edc546..3df358c1f 100644 --- a/src/app/containers/LendBorrowSovryn/components/ButtonGroup/index.tsx +++ b/src/app/containers/LendBorrowSovryn/components/ButtonGroup/index.tsx @@ -39,11 +39,12 @@ const ButtonGroup: React.FC = ({ const [profit, setProfit] = useState(profitCall); const [ticker, setTicker] = useState('0'); + useEffect(() => { + setProfit('0'); + }, [currency]); + useEffect(() => { setBalance(bignumber(balanceCall).minus(profitCall).toString()); - if (setBorrowAmount) { - // setBorrowAmount(bignumber(balanceCall).minus(profitCall).toString()); - } }, [balanceCall, profitCall, setBorrowAmount]); useEffect(() => {