diff --git a/components/account/AccountPage.tsx b/components/account/AccountPage.tsx index 3476a74c..89f3cdc9 100644 --- a/components/account/AccountPage.tsx +++ b/components/account/AccountPage.tsx @@ -324,34 +324,39 @@ const AccountPage = () => { /> ) : null} - ) : chartToShow === 'account-value' ? ( - - ) : chartToShow === 'pnl' ? ( - ) : ( - ({ - interest_value: - d.borrow_interest_cumulative_usd + d.deposit_interest_cumulative_usd, - time: d.time, - }))} - hideChart={handleHideChart} - mangoAccount={mangoAccount!} - yKey="interest_value" - /> +
+ {chartToShow === 'account-value' ? ( + + ) : chartToShow === 'pnl' ? ( + + ) : ( + ({ + interest_value: + d.borrow_interest_cumulative_usd + + d.deposit_interest_cumulative_usd, + time: d.time, + }))} + hideChart={handleHideChart} + mangoAccount={mangoAccount!} + yKey="interest_value" + /> + )} +
) }