src/redux/sagas/remedies.saga.js
// worker Saga: will be fired on "FETCH_REMEDIES" actions from appt details page
worker Saga: will be fired on "FETCH_REMEDIES" actions from appt details page
worker Saga : will be fired on " FETCH_REMEDIES " actions from appt details page
function* fetchRemedies(action) {
  try {
    const remedies = yield axios.get(`/api/apptDetails/${action.payload}`); 
    yield put({ type: 'SET_REMEDIES', payload: remedies.data }); 
  } catch (error) {
    console.log('Remedies get request failed', error);
  }
}
function * fetchRemedies ( action ) { try { const remedies = yield axios . get ( ` ${ action . payload } ` ) ; yield put ( { type : 'SET_REMEDIES' , payload : remedies . data } ) ; } catch ( error ) { console . log ( 'Remedies get request failed' , error ) ; } }
worker Saga: will be fired on "FETCH_REMEDIES" actions from appt details page
worker Saga : will be fired on " FETCH_REMEDIES " actions from appt details page