FIX: Total balance setting resets after restart #7062

This commit is contained in:
Marcos Rodriguez Vélez 2024-09-12 20:57:19 -04:00 committed by GitHub
parent 016c7820a4
commit 3f6401db41
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