Skip to content

Commit 6b16a6f

Browse files
committed
hide eval button if not running when using conductor
1 parent ce8c600 commit 6b16a6f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/commons/controlBar/ControlBarEvalButton.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@ type Props = {
1313

1414
export const ControlBarEvalButton: React.FC<Props> = ({ handleReplEval, isRunning }) => {
1515
const conductorEnabled = useFeature(flagConductorEnable);
16-
return isRunning && !conductorEnabled ? null : (
16+
const showEvalButton = conductorEnabled ? isRunning : !isRunning;
17+
return showEvalButton ? (
1718
<Tooltip content="...or press shift-enter in the REPL">
1819
<ControlButton label="Eval" icon={IconNames.CODE} onClick={handleReplEval} />
1920
</Tooltip>
20-
);
21+
) : null;
2122
};

0 commit comments

Comments
 (0)