From a06f7f7cbbbcbe5c3d34fc534c0fb681a009b0fe Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Tue, 25 Jan 2022 09:26:12 -0300
Subject: -fix: autocomplete check

---
 packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx')

diff --git a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
index a1f384743..c14365d24 100644
--- a/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
+++ b/packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx
@@ -40,7 +40,7 @@ export function AttributeEntryScreen(): VNode {
 
     function addAutocomplete(newValue: string): string {
       const ac = spec.autocomplete;
-      if (!ac || ac.length < newValue.length || ac[newValue.length] === "?")
+      if (!ac || ac.length <= newValue.length || ac[newValue.length] === "?")
         return newValue;
 
       if (!value || newValue.length < value.length) {
-- 
cgit v1.2.3

