diff options
| -rw-r--r-- | app/redux/account/actions.js | 6 | ||||
| -rw-r--r-- | app/redux/account/reducers.js | 3 |
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 = { |
