refactor: variable name

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2023-06-19 12:24:00 +03:00
parent 3c2504ef1e
commit e84c11287b

View File

@@ -317,9 +317,9 @@ useEventListener(document, 'click', handleClose, true)
const selectedOpts = computed(() => {
return vModel.value.reduce<SelectOptionType[]>((selectedOptions, option) => {
const fnd = options.value.find((o) => o.value === option)
if (fnd) {
selectedOptions.push(fnd)
const selectedOption = options.value.find((o) => o.value === option)
if (selectedOption) {
selectedOptions.push(selectedOption)
}
return selectedOptions
}, [])