Skip to content

Commit

Permalink
fixed workflow remaining on logout
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Medesan committed Dec 2, 2020
1 parent 2358c73 commit 299fb43
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ProgressWorkflow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const ProgressWorkflow = (props) => {
// filter out paths that don't have workflow (home, login etc)
if (
workflowProgress.result &&
!workflowProgress.workflow?.error &&
Array.isArray(workflowProgress.result.steps)
) {
findCurrentState(
Expand All @@ -58,7 +59,7 @@ const ProgressWorkflow = (props) => {

useEffect(() => {
dispatch(getWorkflowProgress(pathname)); // the are paths that don't have workflow (home, login etc)
}, [dispatch, pathname, props]);
}, [dispatch, pathname]);

const itemTracker = (tracker) => (
<li
Expand Down Expand Up @@ -125,7 +126,9 @@ const ProgressWorkflow = (props) => {
{currentState.title}
</div>
</>
) : null}
) : (
<></>
)}
</Portal>
);
};
Expand Down

0 comments on commit 299fb43

Please sign in to comment.