Corrected the logic

This commit is contained in:
inaseem 2021-10-02 20:34:53 +05:30
parent 64f4ca0dff
commit c82b287c8a
1 changed files with 2 additions and 2 deletions

View File

@ -331,7 +331,7 @@ const CodeRunner = (props) => {
};
const handleChange = () => {
if (isConnected) {
if (status != "idle") {
return;
} else {
connect();
@ -389,7 +389,7 @@ const CodeRunner = (props) => {
<Chip
size="small"
variant="outlined"
color="info"
color={status != "idle" ? "info" : "default"}
sx={{
fontSize: "0.7rem",
alignSelf: "center",