Merge pull request #7063 from BlueWallet/marcosrdz-patch-3

FIX: Total balance setting resets after restart #7062
This commit is contained in:
GLaDOS 2024-09-14 10:37:44 +00:00 committed by GitHub
commit a6b74829cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -201,7 +201,7 @@ export const SettingsProvider: React.FC<{ children: React.ReactNode }> = ({ chil
getTotalBalancePreferredUnit()
.then(unit => {
console.debug('SettingsContext totalBalancePreferredUnit:', unit);
setTotalBalancePreferredUnit(unit);
setTotalBalancePreferredUnitState(unit);
})
.catch(error => console.error('Error fetching total balance preferred unit:', error));
// eslint-disable-next-line react-hooks/exhaustive-deps