From d2618df4f3f030b45002472af253623299421acd Mon Sep 17 00:00:00 2001 From: Valeriy S Date: Mon, 26 Nov 2018 09:31:45 +0300 Subject: [PATCH] fix: execute backend challenges --- .../templates/Challenges/redux/execute-challenge-epic.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/templates/Challenges/redux/execute-challenge-epic.js b/client/src/templates/Challenges/redux/execute-challenge-epic.js index 1367cfddca..52b6dfc8d5 100644 --- a/client/src/templates/Challenges/redux/execute-challenge-epic.js +++ b/client/src/templates/Challenges/redux/execute-challenge-epic.js @@ -37,7 +37,7 @@ import { createMainFramer } from '../utils/frame.js'; -import { backend } from '../../../../utils/challengeTypes'; +import { challengeTypes } from '../../../../utils/challengeTypes'; const executeDebounceTimeout = 750; @@ -109,7 +109,9 @@ function executeChallengeEpic(action$, state$, { document }) { const state = state$.value; const { challengeType } = challengeMetaSelector(state); const build = - challengeType === backend ? buildBackendChallenge : buildFromFiles; + challengeType === challengeTypes.backend + ? buildBackendChallenge + : buildFromFiles; return build(state).pipe( tap(frameTests), ignoreElements(),