diff --git a/client/src/pages/tools/linux/InstallSoftware/components/ConfigurationArea/components/LogArea/LogArea.jsx b/client/src/pages/tools/linux/InstallSoftware/components/ConfigurationArea/components/LogArea/LogArea.jsx index 9432dd6..f7943ec 100644 --- a/client/src/pages/tools/linux/InstallSoftware/components/ConfigurationArea/components/LogArea/LogArea.jsx +++ b/client/src/pages/tools/linux/InstallSoftware/components/ConfigurationArea/components/LogArea/LogArea.jsx @@ -10,12 +10,14 @@ export const LogArea = ({steps, completedSteps, failedStep}) => (
- {steps.map((step) => { + {steps.map((step, index) => { + const stepBefore = index > 0 ? steps[index - 1] : {step: -1}; + return
{failedStep === step.step ? - : (!completedSteps.includes(step.step) && completedSteps.includes(step.step - 1)) + : (!completedSteps.includes(step.step) && completedSteps.includes(stepBefore.step)) ? : }