From d372dfee1c1037e2bb782779777709176b9dff8b Mon Sep 17 00:00:00 2001 From: uncoolzero <107518216+uncoolzero@users.noreply.github.com> Date: Sun, 17 Sep 2023 19:16:32 -0300 Subject: [PATCH] Build fix, formatting --- .../components/Common/Balances/BeanstalkBalances.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/projects/ui/src/components/Common/Balances/BeanstalkBalances.tsx b/projects/ui/src/components/Common/Balances/BeanstalkBalances.tsx index 095332d7f9..316b57db16 100644 --- a/projects/ui/src/components/Common/Balances/BeanstalkBalances.tsx +++ b/projects/ui/src/components/Common/Balances/BeanstalkBalances.tsx @@ -86,8 +86,8 @@ const BeanstalkBalances: FC<{ function getUnripeBreakdown(token: ERC20Token, amount: BigNumber) { if (!token || !amount || !isTokenUnripe(token.address)) return { bdv: BigNumber(0), usd: BigNumber(0) }; - const ratio = amount.div(unripeTokens[token.address].supply) - const ratioAmount = unripeTokens[token.address].underlying.multipliedBy(ratio) + const ratio = amount.div(unripeTokens[token.address].supply); + const ratioAmount = unripeTokens[token.address].underlying.multipliedBy(ratio); const bdv = siloTokenToFiat( token, ratioAmount, @@ -101,7 +101,7 @@ const BeanstalkBalances: FC<{ false ); - return ({ bdv: bdv, usd: usd }) + return ({ bdv: bdv, usd: usd }); } function amountTooltip(token: ERC20Token, amount: BigNumber, isBreakdown?: boolean) { @@ -244,10 +244,10 @@ const BeanstalkBalances: FC<{ const tokenState = breakdown.tokens[hoverAddress].byState[state]; const isUnripe = isTokenUnripe(hoverToken.address); - let unripeValue; + let unripeValue = BigNumber(0); if (!tokenState.value || !tokenState.amount) return null; if (isUnripe) { - unripeValue = getUnripeBreakdown(hoverToken, tokenState.amount).usd + unripeValue = getUnripeBreakdown(hoverToken, tokenState.amount).usd; } return (