Browse Source

Merge pull request #1049 from gre/fix-balance-cache

Fix a bug where calculated balance could not refresh on UI
master
NastiaS 7 years ago
committed by GitHub
parent
commit
726ea1c475
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/components/CalculateBalance.js

4
src/components/CalculateBalance.js

@ -79,7 +79,9 @@ const mapStateToProps = (state: State, props: OwnProps) => {
balanceHistory,
balanceStart: balanceHistory[0].value,
balanceEnd,
hash: `${balanceHistory.length}_${balanceEnd}_${isAvailable.toString()}`,
hash: `${props.accounts.length > 0 ? props.accounts[0].id : ''}_${
balanceHistory.length
}_${balanceEnd}_${isAvailable.toString()}`,
}
}

Loading…
Cancel
Save