FIX: Restore Change unit on balance tap

This commit is contained in:
marcosrdz 2020-07-24 19:20:32 -04:00 committed by Overtorment
parent 6275853591
commit 8c883e8388

View file

@ -645,7 +645,9 @@ export default class WalletTransactions extends Component {
wallet={this.state.wallet} wallet={this.state.wallet}
onWalletUnitChange={wallet => onWalletUnitChange={wallet =>
InteractionManager.runAfterInteractions(async () => { InteractionManager.runAfterInteractions(async () => {
this.setState({ wallet }, () => InteractionManager.runAfterInteractions(() => BlueApp.saveToDisk())); this.setState({ wallet, itemPriceUnit: wallet.getPreferredBalanceUnit() }, () =>
InteractionManager.runAfterInteractions(() => BlueApp.saveToDisk()),
);
}) })
} }
onManageFundsPressed={() => { onManageFundsPressed={() => {