ajustes cart
This commit is contained in:
parent
08fb7fa2e2
commit
c66d6b4c97
|
@ -194,7 +194,7 @@ export const useCartStore = defineStore("cart", () => {
|
|||
const params = transformOptionsToParams(
|
||||
availabilityForm.value || availability.value
|
||||
);
|
||||
const { correctProduct: { data }, } = await apiBack.get(`products/${product.id}`, { params });
|
||||
const correctProduct = await apiBack.get(`products/${product.id}`, { params });
|
||||
//await getProducts(params);
|
||||
|
||||
const hasCurrentProduct = computed(() => {
|
||||
|
@ -202,7 +202,7 @@ export const useCartStore = defineStore("cart", () => {
|
|||
});
|
||||
|
||||
//if (isEmpty.value) {
|
||||
if (correctProduct.length === 0) {
|
||||
if (correctProduct.data.length === 0) {
|
||||
push("/");
|
||||
return quasarNotify({
|
||||
message:
|
||||
|
|
Loading…
Reference in New Issue