diff --git a/src/bridge/BridgeSyncContext.js b/src/bridge/BridgeSyncContext.js index 99099fb0..0a1181c7 100644 --- a/src/bridge/BridgeSyncContext.js +++ b/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 { 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)