summaryrefslogtreecommitdiff
path: root/extension/react-app/src/tabs/gui.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'extension/react-app/src/tabs/gui.tsx')
-rw-r--r--extension/react-app/src/tabs/gui.tsx6
1 files changed, 3 insertions, 3 deletions
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