Skip to content

Commit

Permalink
Fixed an error
Browse files Browse the repository at this point in the history
  • Loading branch information
Ria Jha committed Aug 13, 2018
1 parent ac3daf0 commit 0fd7367
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game_frontend/src/redux/features/Editor/epics.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const getCodeEpic = (action$, store, { api }) =>
action$.pipe(
ofType(types.GET_CODE_REQUEST),
mergeMap(action =>
api.get(`code/${store.getState().game.connectionParameters.id}/`).pipe(
api.get(`code/${store.getState().game.connectionParameters.game_id}/`).pipe(
map(response => actions.getCodeReceived(response.code)),
catchError(error => Observable.of({
type: types.GET_CODE_FAILURE,
Expand All @@ -26,7 +26,7 @@ const postCodeEpic = (action$, store, { api }) =>
.pipe(
ofType(types.POST_CODE_REQUEST),
api.post(
`/aimmo/api/code/${store.getState().game.connectionParameters.id}/`,
`/aimmo/api/code/${store.getState().game.connectionParameters.game_id}/`,
() => ({ code: store.getState().editor.code })
),
map(response => actions.postCodeReceived()),
Expand Down

0 comments on commit 0fd7367

Please sign in to comment.