Simplify condition

This commit is contained in:
Mel O'Hagan 2022-04-08 23:24:46 +01:00
parent fafce24d5b
commit fdca96609b
1 changed files with 1 additions and 3 deletions

View File

@ -31,9 +31,7 @@
$: {
if (
!drawerVisible ||
tempValue.some(
option => option.label?.length > 0 && option.value?.length > 0
)
tempValue.some(option => option.label && option.value)
) {
valid = true
}