Skip to content

Commit

Permalink
update name toisPortfolioVieEnabled
Browse files Browse the repository at this point in the history
  • Loading branch information
owencraston committed Jan 29, 2025
1 parent 33fc12f commit b6e2ea3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export const PortfolioBalance = React.memo(() => {
return null;
}

if (multchainBalances.isPortfolioEnabled) {
if (multchainBalances.isPortfolioVieEnabled) {
return (
<AggregatedPercentageCrossChains
privacyMode={privacyMode}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ describe('useMultichainBalances', () => {
totalFiatBalance: 0,
totalTokenFiat: 0,
shouldShowAggregatedPercentage: true,
isPortfolioEnabled: false,
isPortfolioVieEnabled: false,
aggregatedBalance: {
ethFiat: 0,
tokenFiat: 0,
Expand Down Expand Up @@ -161,7 +161,7 @@ describe('useMultichainBalances', () => {

const { result } = renderHook(() => useMultichainBalances());

expect(result.current.multchainBalances.isPortfolioEnabled).toBe(true);
expect(result.current.multchainBalances.isPortfolioVieEnabled).toBe(true);
expect(result.current.multchainBalances.totalFiatBalance).toBe(
mockTotalFiatBalance,
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const useMultichainBalances = (): UseMultichainBalancesHook => {
totalFiatBalancesCrossChain[selectedInternalAccount?.address as string]
?.totalTokenFiat ?? 0,
shouldShowAggregatedPercentage: getShouldShowAggregatedPercentage(),
isPortfolioEnabled: isPortfolioViewEnabled(),
isPortfolioVieEnabled: isPortfolioViewEnabled(),
aggregatedBalance: getAggregatedBalance(),
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface MultichainBalancesData {
totalFiatBalance: number;
totalTokenFiat: number;
shouldShowAggregatedPercentage: boolean;
isPortfolioEnabled: boolean;
isPortfolioVieEnabled: boolean;
aggregatedBalance: AggregatedPercentageProps;
}

Expand Down

0 comments on commit b6e2ea3

Please sign in to comment.