We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce8c600 commit 6b16a6fCopy full SHA for 6b16a6f
src/commons/controlBar/ControlBarEvalButton.tsx
@@ -13,9 +13,10 @@ type Props = {
13
14
export const ControlBarEvalButton: React.FC<Props> = ({ handleReplEval, isRunning }) => {
15
const conductorEnabled = useFeature(flagConductorEnable);
16
- return isRunning && !conductorEnabled ? null : (
+ const showEvalButton = conductorEnabled ? isRunning : !isRunning;
17
+ return showEvalButton ? (
18
<Tooltip content="...or press shift-enter in the REPL">
19
<ControlButton label="Eval" icon={IconNames.CODE} onClick={handleReplEval} />
20
</Tooltip>
- );
21
+ ) : null;
22
};
0 commit comments