Skip to content

Commit

Permalink
Minor adjustments due to changes in DAOs balances serivce that now re…
Browse files Browse the repository at this point in the history
…turns balances only for registered DAOs (#2089)
  • Loading branch information
roienatan authored and Oren Sokolowsky committed Oct 4, 2020
1 parent ea9acfb commit d26bd85
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Daos/DaosPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import BHubReg from "../Buidlhub/Registration";
import i18next from "i18next";
import classNames from "classnames";
import axios from "axios";
import { getNetworkName, isEmptyObject } from "lib/util";
import { getNetworkName } from "lib/util";

type SubscriptionData = [DAO[], DAO[], DAO[]];

Expand Down Expand Up @@ -206,7 +206,7 @@ class DaosPage extends React.Component<IProps, IState> {
<DaoCard
key={dao.id}
dao={dao}
totalHoldings={isEmptyObject(daosBalances) ? "N/A" : daosBalances[dao.id]?.formattedBalance}
totalHoldings={daosBalances[dao.id] ? daosBalances[dao.id]?.formattedBalance : "N/A"}
/>
);
});
Expand All @@ -216,7 +216,7 @@ class DaosPage extends React.Component<IProps, IState> {
<DaoCard
key={dao.id}
dao={dao}
totalHoldings={isEmptyObject(daosBalances) ? "N/A" : daosBalances[dao.id]?.formattedBalance}
totalHoldings={daosBalances[dao.id] ? daosBalances[dao.id]?.formattedBalance : "N/A"}
/>
);
});
Expand Down

0 comments on commit d26bd85

Please sign in to comment.