feat: improve ui/ux learn map (#40579)
Co-authored-by: Kris Koishigawa <scissorsneedfoodtoo@gmail.com>
This commit is contained in:
@@ -133,7 +133,7 @@ export default function completionEpic(action$, state$) {
|
||||
switchMap(({ type }) => {
|
||||
const state = state$.value;
|
||||
const meta = challengeMetaSelector(state);
|
||||
const { nextChallengePath, introPath, challengeType } = meta;
|
||||
const { nextChallengePath, challengeType } = meta;
|
||||
const closeChallengeModal = of(closeModal('completion'));
|
||||
|
||||
let submitter = () => of({ type: 'no-user-signed-in' });
|
||||
@@ -151,7 +151,7 @@ export default function completionEpic(action$, state$) {
|
||||
}
|
||||
|
||||
return submitter(type, state).pipe(
|
||||
tap(() => navigate(introPath ? introPath : nextChallengePath)),
|
||||
tap(() => navigate(nextChallengePath)),
|
||||
concat(closeChallengeModal),
|
||||
filter(Boolean)
|
||||
);
|
||||
|
Reference in New Issue
Block a user