summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-06-13 15:54:31 -0300
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2018-06-14 11:22:29 -0300
commit587c9c0b5a76b2ced210ae652a09d42603e292cf (patch)
tree5227facdd4f4748f0269864b6db159f2b4289397 /app
parent77d12c299d284897de242a141d16609799675a3b (diff)
downloadmullvadvpn-587c9c0b5a76b2ced210ae652a09d42603e292cf.tar.xz
mullvadvpn-587c9c0b5a76b2ced210ae652a09d42603e292cf.zip
Remove `BackendError` from account redux code
Diffstat (limited to 'app')
-rw-r--r--app/redux/account/actions.js6
-rw-r--r--app/redux/account/reducers.js3
2 files changed, 4 insertions, 5 deletions
diff --git a/app/redux/account/actions.js b/app/redux/account/actions.js
index fdb9f44281..c778b111fd 100644
--- a/app/redux/account/actions.js
+++ b/app/redux/account/actions.js
@@ -1,7 +1,7 @@
// @flow
import type { AccountToken } from '../../lib/ipc-facade';
-import type { Backend, BackendError } from '../../lib/backend';
+import type { Backend } from '../../lib/backend';
type StartLoginAction = {
type: 'START_LOGIN',
@@ -15,7 +15,7 @@ type LoginSuccessfulAction = {
type LoginFailedAction = {
type: 'LOGIN_FAILED',
- error: BackendError,
+ error: Error,
};
type LoggedOutAction = {
@@ -65,7 +65,7 @@ function loginSuccessful(expiry: string): LoginSuccessfulAction {
};
}
-function loginFailed(error: BackendError): LoginFailedAction {
+function loginFailed(error: Error): LoginFailedAction {
return {
type: 'LOGIN_FAILED',
error: error,
diff --git a/app/redux/account/reducers.js b/app/redux/account/reducers.js
index f3485028d4..094864c9a8 100644
--- a/app/redux/account/reducers.js
+++ b/app/redux/account/reducers.js
@@ -1,7 +1,6 @@
// @flow
import type { ReduxAction } from '../store';
-import type { BackendError } from '../../lib/backend';
import type { AccountToken } from '../../lib/ipc-facade';
export type LoginState = 'none' | 'logging in' | 'failed' | 'ok';
@@ -10,7 +9,7 @@ export type AccountReduxState = {
accountHistory: Array<AccountToken>,
expiry: ?string, // ISO8601
status: LoginState,
- error: ?BackendError,
+ error: ?Error,
};
const initialState: AccountReduxState = {