fix: wrong cond

This commit is contained in:
Methapon2001 2024-06-28 14:13:48 +07:00
parent 65cc35bc33
commit 1f09edbb59

View file

@ -1443,10 +1443,11 @@ watch([inputSearch, currentStatus], async () => {
</q-menu>
</q-btn>
</div>
<template
v-if="
listCustomer && totalCustomer > 0 && selectorLabel === 'EMPLOYER'
listCustomer &&
statsCustomerType.PERS + statsCustomerType.CORP > 0 &&
selectorLabel === 'EMPLOYER'
"
>
<div
@ -1616,7 +1617,7 @@ watch([inputSearch, currentStatus], async () => {
<template
v-if="
(statsCustomerType.CORP + statsCustomerType.PERS &&
(statsCustomerType.CORP + statsCustomerType.PERS === 0 &&
selectorLabel === 'EMPLOYER') ||
(statsEmployee === 0 && selectorLabel === 'EMPLOYEE')
"