Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(suite): added reusable hook for total portfolio balance #16076

Merged
merged 2 commits into from
Dec 27, 2024

Conversation

TomasBoda
Copy link
Contributor

Description

Created a reusable hook for retrieving total portfolio fiat balance, which is reused in several places.

Related Issue

Resolve #16075

Screenshots:

Screenshot 2024-12-20 at 11 44 03 Screenshot 2024-12-20 at 11 44 09

@TomasBoda TomasBoda self-assigned this Dec 20, 2024
rates: currentFiatRates,
});

const instanceBalance = useTotalFiatBalance(deviceAccounts, localCurrency, currentFiatRates);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would call it walletBalance in both files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@TomasBoda TomasBoda force-pushed the reusable-total-balance branch from 609347a to 3f02b04 Compare December 27, 2024 09:32
@tomasklim tomasklim merged commit b548006 into develop Dec 27, 2024
27 checks passed
@tomasklim tomasklim deleted the reusable-total-balance branch December 27, 2024 11:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create reusable logic for correct total portfolio balance
3 participants