Skip to content

Commit 571683e

Browse files
committed
chore: fix misspell in variable names
1 parent d49035c commit 571683e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

custom/completionInput.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
</div>
4747
<div
4848
class="flex items-center justify-center"
49-
v-else-if="buttonText === approveNextWorldValue"
49+
v-else-if="buttonText === approveNextWordValue"
5050
>
5151
<IconArrowRightThin class="mt-0.5 w-5 h-5 text-white" />
5252
<span class="ml-1 px-1 h-4 flex items-center justify-center rounded border bg-white text-black text-[10px] font-mono shadow-inner shadow-sm border-gray-300 dark:bg-gray-700 dark:text-white dark:border-gray-500">
@@ -86,7 +86,7 @@ const emit = defineEmits([
8686
'update:value',
8787
]);
8888
const approveCompletionValue:string='TAB';
89-
const approveNextWorldValue:string='CTRL + ->'
89+
const approveNextWordValue:string='CTRL + ->'
9090
const isLoading = ref<boolean>(false);
9191
const isUntouched = ref<boolean>(true);
9292
const isFocused = ref<boolean>(false);
@@ -100,8 +100,8 @@ const tooltipText = computed(() =>
100100
101101
function handleCompletionApproved(type: 'all' | 'word') {
102102
if(buttonText.value === approveCompletionValue && type === 'all') {
103-
buttonText.value = approveNextWorldValue;
104-
} else if (buttonText.value === approveNextWorldValue && type === 'word') {
103+
buttonText.value = approveNextWordValue;
104+
} else if (buttonText.value === approveNextWordValue && type === 'word') {
105105
buttonText.value = approveCompletionValue;
106106
}
107107
}
@@ -157,7 +157,7 @@ const approveCompletion = async () => {
157157
await suggestionInputRef.value.approveCompletion('word');
158158
}
159159
}
160-
buttonText.value === approveCompletionValue ? buttonText.value = approveNextWorldValue : buttonText.value = approveCompletionValue;
160+
buttonText.value === approveCompletionValue ? buttonText.value = approveNextWordValue : buttonText.value = approveCompletionValue;
161161
}
162162
163163
function handleFocus() {

0 commit comments

Comments
 (0)