Skip to content

Commit

Permalink
fix(FOROME-1087): fix activating final step
Browse files Browse the repository at this point in the history
  • Loading branch information
QSdmitrioul committed Jun 2, 2022
1 parent 5388dfc commit 1090a8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/pages/filter/dtree/components/active-step.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,7 @@ class ActiveStep {
const isReturnedVariants =
this.activeStepOption === ActiveStepOptions.ReturnedVariants

const indexForApi = isReturnedVariants
? String(+indexFromIndexes + 1)
: indexFromIndexes

return indexForApi
return isReturnedVariants ? String(+indexFromIndexes + 1) : indexFromIndexes
}

makeStepActive(index: number, option: ActiveStepOptions) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const FinalStep = observer(

if (shouldMakeActive) {
activeStepStore.makeStepActive(
stepNo - 1,
stepNo,
ActiveStepOptions.StartedVariants,
)
}
Expand Down Expand Up @@ -70,7 +70,7 @@ export const FinalStep = observer(
)}
onClick={event => setStepActive(index, event)}
>
<div className="flex w-full items-center step-content-area">
<div className="flex w-full items-center step-content-area">
<Step className="mb-2 mt-2">{t('dtree.finalStep')}</Step>

<div className="flex ml-4">
Expand Down

0 comments on commit 1090a8a

Please sign in to comment.