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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
1 deletions
-
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()}`,
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|