mirror of
https://github.com/BlueWallet/BlueWallet.git
synced 2025-01-19 05:45:15 +01:00
FIX: Total balance setting resets after restart #7062
This commit is contained in:
parent
016c7820a4
commit
3f6401db41
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user