Skip to content

Commit 334556e

Browse files
authored
Merge pull request #3183 from JdeRobot/fix-loading-play
Fix loading play button
2 parents 513bbae + 0a01501 commit 334556e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

react_frontend/src/components/buttons/PlayPauseButton.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ const PlayPause = (props) => {
2929
state === "paused"
3030
)
3131
);
32+
setLoading(false);
3233
};
3334

3435
commsManager.subscribe([commsManager.events.STATE_CHANGED], callback);
@@ -57,7 +58,6 @@ const PlayPause = (props) => {
5758
} else {
5859
await runCode(editorCode);
5960
}
60-
setLoading(false);
6161
setEditorChanged(false);
6262
};
6363

@@ -143,7 +143,6 @@ const PlayPause = (props) => {
143143
.pause()
144144
.then(() => {})
145145
.catch((response) => console.log(response))
146-
.finally(() => setLoading(false));
147146
};
148147

149148
return (

0 commit comments

Comments
 (0)