Fix toast to display successfully added Sonarr series

This commit is contained in:
mjrode
2019-04-13 17:19:19 -05:00
parent ae2a4380c7
commit 72c59dd746
2 changed files with 5 additions and 5 deletions

View File

@@ -38,6 +38,8 @@ export const addSeries = params => async dispatch => {
dispatch({type: types.CURRENT_SHOW, payload: params.showName});
const res = await axios.get('/api/sonarr/series/add', {params});
dispatch({type: types.SET_LOADING, payload: false});
toast(res.data);
res.data.title
? toast('Successfully added: ' + res.data.title)
: toast(res.data);
dispatch({type: types.ADD_SERIES, payload: res.data});
};