Skip to content

Commit

Permalink
Merge pull request #3795 from Emurgo/denis/yoext-1218/hide-balance-to…
Browse files Browse the repository at this point in the history
…p-bar

Fixed hiding balance
  • Loading branch information
Nebyt authored Dec 25, 2024
2 parents dfa6aa2 + c5f2c2a commit 307e554
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default class NavBarContainerRevamp extends Component<{| ...StoresProps,
const { stores, pageBanner, isErrorPage } = this.props;
const { profile, wallets } = stores;
const { selected, selectedWalletName } = wallets;
const shouldHideBalance = profile.shouldHideBalance;

const DropdownHead = () => {
if (!selected || !selectedWalletName) {
Expand All @@ -86,7 +87,7 @@ export default class NavBarContainerRevamp extends Component<{| ...StoresProps,
plate={plate}
name={selectedWalletName}
onUpdateHideBalance={this.updateHideBalance}
shouldHideBalance={profile.shouldHideBalance}
shouldHideBalance={shouldHideBalance}
rewards={rewards}
walletAmount={selected.balance}
getTokenInfo={genLookupOrFail(this.props.stores.tokenInfoStore.tokenInfo)}
Expand Down Expand Up @@ -123,6 +124,7 @@ export default class NavBarContainerRevamp extends Component<{| ...StoresProps,
const { stores } = this.props;
const { selected, wallets } = stores.wallets;
const getTokenInfo = genLookupOrFail(stores.tokenInfoStore.tokenInfo);
const shouldHideBalance = stores.profile.shouldHideBalance;

if (stores.uiDialogs.isOpen(WalletListDialog)) {
const cardanoWallets = [];
Expand Down Expand Up @@ -156,7 +158,7 @@ export default class NavBarContainerRevamp extends Component<{| ...StoresProps,
this.checkAndResetGovRoutes();
this.props.stores.uiDialogs.closeActiveDialog();
}}
shouldHideBalance={stores.profile.shouldHideBalance}
shouldHideBalance={shouldHideBalance}
onUpdateHideBalance={this.updateHideBalance}
getTokenInfo={getTokenInfo}
walletAmount={selected?.balance}
Expand Down

0 comments on commit 307e554

Please sign in to comment.