fix(poly): Check we are working with Poly from code-storage (#16582)

* fix(poly): Check we are working with Poly from code-storage

* fix(backend): Do not show complettion modal for a backend challenge

* fix(backend): Remove unused action
This commit is contained in:
Stuart Taylor
2018-01-29 16:03:23 +00:00
committed by Quincy Larson
parent 21bd1b4207
commit f9ac50103f
3 changed files with 12 additions and 9 deletions

View File

@@ -216,7 +216,10 @@ export const isCodeLockedSelector = state => getNS(state).isCodeLocked;
export const isJSEnabledSelector = state => getNS(state).isJSEnabled;
export const chatRoomSelector = state => getNS(state).helpChatRoom;
export const challengeModalSelector =
state => getNS(state).isChallengeModalOpen;
state => (
getNS(state).isChallengeModalOpen &&
challengeSelector(state).type !== 'backend'
);
export const bugModalSelector = state => getNS(state).isBugOpen;
export const helpModalSelector = state => getNS(state).isHelpOpen;