import { takeEvery } from 'redux-saga'
import { call, put } from 'redux-saga/effects'
import * as actions from './actions'
import 'isomorphic-fetch'

export default function* root() {
  yield takeEvery(actions.FETCH_QUEUE, fetchQueue)
}

export function fetchApi(url) {
  return fetch(url)
    .then(response => response.json())
}

export function* fetchQueue() {
  console.log('fetching')
  try {
    console.log('trying')
    const queue = yield call(fetchApi, 'donation/queue')
    console.log(queue)
    yield put(actions.fetchQueueDone(queue))
  } catch(err) {
    console.log(err)
    // Error handling
  }
}

@@ -363,65 +363,13 @@
 %7B%0A  
-console.log('fetching')%0A  try %7B%0A    console.log('trying')
+try %7B
 %0A   

Remove some logging