diff --git a/components/account_page/AccountFunding.tsx b/components/account_page/AccountFunding.tsx
index 804ce77c..bd46e02e 100644
--- a/components/account_page/AccountFunding.tsx
+++ b/components/account_page/AccountFunding.tsx
@@ -4,6 +4,7 @@ import Chart from '../Chart'
import Loading from '../Loading'
import Select from '../Select'
import { Table, Td, Th, TrBody, TrHead } from '../TableElements'
+import { isEmpty } from 'lodash'
const AccountFunding = () => {
const mangoAccount = useMangoStore((s) => s.selectedMangoAccount.current)
@@ -109,7 +110,7 @@ const AccountFunding = () => {
<>
- {hourlyFunding && !loading ? (
+ {!isEmpty(hourlyFunding) && !loading ? (
<>
-
-
- x.toFixed(6)}
- type="area"
- />
-
+ {hourlyFunding[selectedAsset].length ? (
+
+ x.toFixed(6)}
+ type="area"
+ />
+
+ ) : null}
>
) : loading ? (
diff --git a/components/account_page/AccountInterest.tsx b/components/account_page/AccountInterest.tsx
index 656739f7..64b6cae2 100644
--- a/components/account_page/AccountInterest.tsx
+++ b/components/account_page/AccountInterest.tsx
@@ -5,6 +5,7 @@ import Chart from '../Chart'
import Loading from '../Loading'
import Select from '../Select'
import { Table, Td, Th, TrBody, TrHead } from '../TableElements'
+import { isEmpty } from 'lodash'
interface InterestStats {
[key: string]: {
@@ -127,7 +128,7 @@ const AccountInterest = () => {
<>
- {hourlyInterestStats && !loading ? (
+ {!isEmpty(hourlyInterestStats) && !loading ? (
<>