aboutsummaryrefslogtreecommitdiffstats
path: root/packages/instant/src/util/heartbeater_factory.ts
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-11-13 05:30:47 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-11-13 05:30:47 +0800
commit79f0324abc6e59d5595770e44d620e6d0cccd6bc (patch)
treecab441568b4362b90f2626257576ebab60b7ecbb /packages/instant/src/util/heartbeater_factory.ts
parenta8a1ea92a614181ebdf6c738139723f0d5c6da69 (diff)
downloaddexon-sol-tools-79f0324abc6e59d5595770e44d620e6d0cccd6bc.tar
dexon-sol-tools-79f0324abc6e59d5595770e44d620e6d0cccd6bc.tar.gz
dexon-sol-tools-79f0324abc6e59d5595770e44d620e6d0cccd6bc.tar.bz2
dexon-sol-tools-79f0324abc6e59d5595770e44d620e6d0cccd6bc.tar.lz
dexon-sol-tools-79f0324abc6e59d5595770e44d620e6d0cccd6bc.tar.xz
dexon-sol-tools-79f0324abc6e59d5595770e44d620e6d0cccd6bc.tar.zst
dexon-sol-tools-79f0324abc6e59d5595770e44d620e6d0cccd6bc.zip
feat: integrate wallet flow with heartbeat and other branches
Diffstat (limited to 'packages/instant/src/util/heartbeater_factory.ts')
-rw-r--r--packages/instant/src/util/heartbeater_factory.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/instant/src/util/heartbeater_factory.ts b/packages/instant/src/util/heartbeater_factory.ts
index 96a8ac4e6..06fcdb8bb 100644
--- a/packages/instant/src/util/heartbeater_factory.ts
+++ b/packages/instant/src/util/heartbeater_factory.ts
@@ -10,13 +10,13 @@ export interface HeartbeatFactoryOptions {
export const generateAccountHeartbeater = (options: HeartbeatFactoryOptions): Heartbeater => {
const { store, shouldPerformImmediatelyOnStart } = options;
return new Heartbeater(async () => {
- await asyncData.fetchAccountInfoAndDispatchToStore({ store, shouldSetToLoading: false });
+ await asyncData.fetchAccountInfoAndDispatchToStore(store.getState().providerState, store.dispatch, false);
}, shouldPerformImmediatelyOnStart);
};
export const generateBuyQuoteHeartbeater = (options: HeartbeatFactoryOptions): Heartbeater => {
const { store, shouldPerformImmediatelyOnStart } = options;
return new Heartbeater(async () => {
- await asyncData.fetchCurrentBuyQuoteAndDispatchToStore({ store, shouldSetPending: false });
+ await asyncData.fetchCurrentBuyQuoteAndDispatchToStore(store.getState(), store.dispatch, false);
}, shouldPerformImmediatelyOnStart);
};