mirror of
https://github.com/mjrode/WhatToWatch.git
synced 2026-01-06 13:39:35 -06:00
Fix toast to display successfully added Sonarr series
This commit is contained in:
@@ -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});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user