rename variable name

This commit is contained in:
asift798
2022-02-14 15:16:26 +05:30
parent 3f2c774f91
commit c07e309918
6 changed files with 39 additions and 39 deletions

View File

@ -83,8 +83,8 @@ async function searchCustomers(search) {
let res = await customerStore.fetchCustomers(data)
if(res.data.data.length>0 && customerStore.editCustomer) {
let checkCustomerExist = res.data.data.find((c) => c.id==customerStore.editCustomer.id)
if(!checkCustomerExist) {
let customerFound = res.data.data.find((c) => c.id==customerStore.editCustomer.id)
if(!customerFound) {
let edit_customer = Object.assign({}, customerStore.editCustomer)
res.data.data.unshift(edit_customer)
}