Skip to content

Commit

Permalink
removed unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Schüler committed Mar 1, 2024
1 parent e861015 commit 45f3e24
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions new/src/components/Scenarios/Scenario.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function Scenario(props: ScenarioProps) {
[expanded]
);

return props.scenario.scenarioCases.length === 1 ? (
return (
<div
id={`${props.scenario.className}#${props.scenario.testMethodName}`}
aria-label={`Scenario ${props.scenario.description}`}
Expand Down Expand Up @@ -64,8 +64,6 @@ export function Scenario(props: ScenarioProps) {
</AccordionDetails>
</Accordion>
</div>
) : (
<div></div>
);
}

Expand All @@ -77,8 +75,6 @@ function SingleCaseScenario(props: {
summary: string;
className: string;
}) {


return (
<Box sx={{marginLeft: "2em"}}>
{props.scenarioCase.steps.map((step: StepModel, index) => (
Expand Down

0 comments on commit 45f3e24

Please sign in to comment.