Skip to content

Commit 18d86c1

Browse files
Varshith DupatiVarshith Dupati
authored andcommitted
bug fix
1 parent 3bb734a commit 18d86c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/components/Terminal.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ function Terminal() {
194194
// Will be handled in the rendering logic
195195
break;
196196
default:
197-
if (command !== "") {
198-
setprevusedCommand(prevArray => [...prevArray, `bash: ${command}: command not found`]);
199-
}
197+
// The error message will be handled by renderCommandHistory
200198
break;
201199
}
202200
};

0 commit comments

Comments
 (0)