diff options
author | Paul Bouchon <mail@bitpshr.net> | 2019-03-12 12:40:41 +0800 |
---|---|---|
committer | Frankie <frankie.diamond@gmail.com> | 2019-03-12 12:40:41 +0800 |
commit | daae155ce2800a0533f7050ec79e5b0d91cb706f (patch) | |
tree | 06f9cf3c84bf38584e99faa45dbff50571d8baf4 /app/scripts/lib | |
parent | 59dbb9babb6f59dbb6bae0aded161408ab5f2c89 (diff) | |
download | tangerine-wallet-browser-daae155ce2800a0533f7050ec79e5b0d91cb706f.tar tangerine-wallet-browser-daae155ce2800a0533f7050ec79e5b0d91cb706f.tar.gz tangerine-wallet-browser-daae155ce2800a0533f7050ec79e5b0d91cb706f.tar.bz2 tangerine-wallet-browser-daae155ce2800a0533f7050ec79e5b0d91cb706f.tar.lz tangerine-wallet-browser-daae155ce2800a0533f7050ec79e5b0d91cb706f.tar.xz tangerine-wallet-browser-daae155ce2800a0533f7050ec79e5b0d91cb706f.tar.zst tangerine-wallet-browser-daae155ce2800a0533f7050ec79e5b0d91cb706f.zip |
GABA: Integrate AddressBookController (#5847)
* gaba: integrate AddressBookController
* pin gaba version and update lockfile
Diffstat (limited to 'app/scripts/lib')
-rw-r--r-- | app/scripts/lib/ComposableObservableStore.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/scripts/lib/ComposableObservableStore.js b/app/scripts/lib/ComposableObservableStore.js index d5ee708a1..abb779672 100644 --- a/app/scripts/lib/ComposableObservableStore.js +++ b/app/scripts/lib/ComposableObservableStore.js @@ -40,7 +40,9 @@ class ComposableObservableStore extends ObservableStore { getFlatState () { let flatState = {} for (const key in this.config) { - flatState = { ...flatState, ...this.config[key].getState() } + const controller = this.config[key] + const state = controller.getState ? controller.getState() : controller.state + flatState = { ...flatState, ...state } } return flatState } |