From 0a7ca710ae4af16933ef128d13c050b99912e71a Mon Sep 17 00:00:00 2001 From: Nate Sesti Date: Mon, 12 Jun 2023 22:14:46 -0700 Subject: added slash commands, patched --- extension/react-app/src/tabs/gui.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'extension/react-app/src') diff --git a/extension/react-app/src/tabs/gui.tsx b/extension/react-app/src/tabs/gui.tsx index a3a48410..bf6a9401 100644 --- a/extension/react-app/src/tabs/gui.tsx +++ b/extension/react-app/src/tabs/gui.tsx @@ -242,14 +242,14 @@ function GUI(props: GUIProps) { let input = mainTextInputRef.current.value; if ( - history && + history?.timeline.length && history.timeline[history.current_index].step.name === "Waiting for user input" ) { if (input.trim() === "") return; onStepUserInput(input, history!.current_index); } else if ( - history && + history?.timeline.length && history.timeline[history.current_index].step.name === "Waiting for user confirmation" ) { @@ -344,7 +344,7 @@ function GUI(props: GUIProps) {