diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-06-14 21:53:01 -0300 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2018-06-15 08:49:42 -0300 |
| commit | ffc9500d5d57c427378591aab5e4c86960d27fe7 (patch) | |
| tree | 5eee4466f06299e319581f35d5e315f1543382c6 /app | |
| parent | 587c9c0b5a76b2ced210ae652a09d42603e292cf (diff) | |
| download | mullvadvpn-ffc9500d5d57c427378591aab5e4c86960d27fe7.tar.xz mullvadvpn-ffc9500d5d57c427378591aab5e4c86960d27fe7.zip | |
Remove `BackendError` from `app.android.js`
Diffstat (limited to 'app')
| -rw-r--r-- | app/app.android.js | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/app/app.android.js b/app/app.android.js index 38bb927a93..04c7ac2882 100644 --- a/app/app.android.js +++ b/app/app.android.js @@ -8,7 +8,7 @@ import { createMemoryHistory } from 'history'; import makeRoutes from './routes'; import configureStore from './redux/store'; import { log } from './lib/platform'; -import { Backend, BackendError } from './lib/backend'; +import { Backend, NoAccountError } from './lib/backend'; import { DeviceEventEmitter } from 'react-native'; import { MobileAppBridge } from 'NativeModules'; import { Dimensions } from 'react-native'; @@ -31,11 +31,9 @@ DeviceEventEmitter.addListener('com.mullvad.backend-info', async (_event, args) await backend.fetchSecurityState(); await backend.connect(); } catch (e) { - if (e instanceof BackendError) { - if (e.type === 'NO_ACCOUNT') { - log.debug('No user set in the backend, showing window'); - MobileAppBridge.showWindow(); - } + if (e instanceof NoAccountError) { + log.debug('No user set in the backend, showing window'); + MobileAppBridge.showWindow(); } } }); |
