Browse Source
Merge pull request #1223 from gre/fix-edge-case-in-sync
bugfix edge-case in sync
master
Meriadec Pillet
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
src/bridge/BridgeSyncContext.js
|
|
@ -3,7 +3,6 @@ |
|
|
|
// it handles automatically re-calling synchronize
|
|
|
|
// this is an even high abstraction than the bridge
|
|
|
|
|
|
|
|
import invariant from 'invariant' |
|
|
|
import logger from 'logger' |
|
|
|
import shuffle from 'lodash/shuffle' |
|
|
|
import { timeout } from 'rxjs/operators/timeout' |
|
|
@ -67,7 +66,10 @@ class Provider extends Component<BridgeSyncProviderOwnProps, Sync> { |
|
|
|
return |
|
|
|
} |
|
|
|
const account = this.props.accounts.find(a => a.id === accountId) |
|
|
|
invariant(account, 'account not found') |
|
|
|
if (!account) { |
|
|
|
next() |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
const bridge = getBridgeForCurrency(account.currency) |
|
|
|
|
|
|
|