Skip to content

Commit

Permalink
fixes lending profit addings
Browse files Browse the repository at this point in the history
  • Loading branch information
creed-victor committed Nov 24, 2020
1 parent fbe0578 commit ac024b6
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@ const ButtonGroup: React.FC<Props> = ({
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(() => {
Expand Down

0 comments on commit ac024b6

Please sign in to comment.