Skip to content

Commit

Permalink
fix(protocol-designer): fix logic for terminal step icon
Browse files Browse the repository at this point in the history
This fixes a bug where the starting deck terminal step icon was being incorrectly determined as the end icon, because we were checking the title text of the step, which is subject to change. To fix this, we determine the icon based on step ID.
  • Loading branch information
ncdiehl11 committed Dec 11, 2024
1 parent 6149597 commit 6d73c9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ export function TerminalItemStep(props: TerminalItemStepProps): JSX.Element {
<StepContainer
{...{
stepId: `TerminalItem_${id}`,
iconName: title === 'Starting deck state' ? 'ot-start' : 'ot-end',
iconName: id === '__initial_setup__' ? 'ot-start' : 'ot-end',
hovered,
selected,
title,
Expand Down

0 comments on commit 6d73c9f

Please sign in to comment.