diff --git a/evens-or-odds/src/actions/deck.js b/evens-or-odds/src/actions/deck.js index 018dd25..5889d62 100644 --- a/evens-or-odds/src/actions/deck.js +++ b/evens-or-odds/src/actions/deck.js @@ -6,7 +6,7 @@ export const fetchDeckResult = deckJson => { return { type: FETCH_DECK_RESULT, remaining, deck_id }; } -export const fetchNewDeck = dispatch => { +export const fetchNewDeck = () => dispatch => { return fetch('https://deck-of-cards-api-wrapper.appspot.com/deck/new/shuffle') .then(response => response.json()) .then(json => dispatch(fetchDeckResult(json)));