Skip to content

Commit 7cf588a

Browse files
committed
else
1 parent c3a72d5 commit 7cf588a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

client/modules/IDE/components/FloatingActionButton.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ const FloatingActionButton = (props) => {
5151
if (!isPlaying) {
5252
props.syncFileContent();
5353
dispatch(startSketch());
54-
}
55-
if (isPlaying) dispatch(stopSketch());
54+
} else dispatch(stopSketch());
5655
}}
5756
>
5857
{isPlaying ? <StopIcon /> : <PlayIcon />}

0 commit comments

Comments
 (0)