|
import { UnauthorizedError } from "../../util/daddy";
|
|
import { put } from 'redux-saga/effects';
|
|
import { logout } from '../actions/logout';
|
|
|
|
export function* failuresSaga(action) {
|
|
if (action.error instanceof UnauthorizedError) {
|
|
yield put(logout());
|
|
}
|
|
}
|