Skip to content

Commit 7011040

Browse files
author
smallstone
committed
Remove console.log statement and fix index comparison in MessageMarkdown component
1 parent b238049 commit 7011040

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • src/views/components/MessageMarkdown

src/views/components/MessageMarkdown/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ const MessageMarkdown = observer((props: MessageMarkdownProps) => {
7575
const platform = process.env.platform;
7676

7777
const handleExplain = (value: string | undefined) => {
78-
console.log(value);
7978
switch (value) {
8079
case "#ask_code":
8180
chat.addMessages([
@@ -317,7 +316,7 @@ Generate a professionally written and formatted release note in markdown with th
317316
if (lanugage === "step" || lanugage === "Step") {
318317
const status =
319318
activeStep &&
320-
Number(index) === codes.length - 1 &&
319+
Number(index) === codes.length &&
321320
lastNode.type === "code"
322321
? "running"
323322
: "done";

0 commit comments

Comments
 (0)