mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 04:46:40 +07:00
cleanup
This commit is contained in:
parent
6ba94881c9
commit
219d05f8ba
1 changed files with 1 additions and 4 deletions
|
@ -1,5 +1,4 @@
|
|||
import { call, put, takeLatest, select } from 'redux-saga/effects';
|
||||
import { push } from 'connected-react-router';
|
||||
import { AUTH_USER_ACTIONS, EMPTY_USER, USER_ERRORS } from '~/redux/auth/constants';
|
||||
import {
|
||||
authSetToken,
|
||||
|
@ -8,7 +7,7 @@ import {
|
|||
userSendLoginRequest,
|
||||
} from '~/redux/auth/actions';
|
||||
import { apiUserLogin, apiAuthGetUser } from '~/redux/auth/api';
|
||||
import { modalSetShown, modalShowDialog } from '~/redux/modal/actions';
|
||||
import { modalSetShown } from '~/redux/modal/actions';
|
||||
import { selectToken } from './selectors';
|
||||
import { IResultWithStatus } from '../types';
|
||||
import { IUser } from './types';
|
||||
|
@ -55,8 +54,6 @@ function* checkUserSaga({ key }: RehydrateAction) {
|
|||
data: { user },
|
||||
}: IResultWithStatus<{ user: IUser }> = yield call(reqWrapper, apiAuthGetUser);
|
||||
|
||||
console.log({ error, user });
|
||||
|
||||
if (error) {
|
||||
yield put(
|
||||
authSetUser({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue