fga-eps-mds/2019.2-Vsign

View on GitHub
frontend/src/sagas/login.js

Summary

Maintainability
A
0 mins
Test Coverage
import { all, takeEvery } from 'redux-saga/effects';
import { history } from '../store';
import { CONTRACTS_URL } from '../constants/routes';
import { LOGIN } from '../constants/login';

// eslint-disable-next-line
function* handleLogin(action) {
    history.push(CONTRACTS_URL);
}

function * watchLogin() {
    yield takeEvery(LOGIN, handleLogin);
}

export default function* root() {
    yield all([
        watchLogin(),
    ]);
}