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