From b832660d7fa46064326a90439b70603a93c865c8 Mon Sep 17 00:00:00 2001
From: Nate Sesti <sestinj@gmail.com>
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/tabs/gui.tsx')

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) {
 
       <ComboBox
         disabled={
-          history
+          history?.timeline.length
             ? history.timeline[history.current_index].step.name ===
               "Waiting for user confirmation"
             : false
-- 
cgit v1.2.3-70-g09d2

