diff options
author | Sebastian <sebasjm@gmail.com> | 2022-01-25 09:26:12 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-01-25 10:29:40 -0300 |
commit | a06f7f7cbbbcbe5c3d34fc534c0fb681a009b0fe (patch) | |
tree | 9fd553befff20f668a074548915a21f0a3b445c7 /packages/anastasis-webui/src/pages/home | |
parent | a51abcffb04e29880170fb3aac550e5dc06e01d0 (diff) | |
download | wallet-core-a06f7f7cbbbcbe5c3d34fc534c0fb681a009b0fe.tar.xz |
-fix: autocomplete check
Diffstat (limited to 'packages/anastasis-webui/src/pages/home')
-rw-r--r-- | packages/anastasis-webui/src/pages/home/AttributeEntryScreen.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |