src/redux/sagas/appt.saga.js
// worker Saga: will be fired on "FETCH_APPT" actions from client profile
worker Saga: will be fired on "FETCH_APPT" actions from client profile
worker Saga : will be fired on " FETCH_APPT " actions from client profile
function* fetchAppt(action) {
  try {
    const appt = yield axios.get(`/api/profile/${action.payload}`); 
    yield put({ type: 'SET_APPT', payload: appt.data }); 
  } catch (error) {
    console.log('Appt get request failed', error);
  }
}
function * fetchAppt ( action ) { try { const appt = yield axios . get ( ` ${ action . payload } ` ) ; yield put ( { type : 'SET_APPT' , payload : appt . data } ) ; } catch ( error ) { console . log ( 'Appt get request failed' , error ) ; } }
worker Saga: will be fired on "FETCH_APPT" actions from client profile
worker Saga : will be fired on " FETCH_APPT " actions from client profile
// /${id} double check route! //double check this payload