diff --git a/composables/useProductsList.ts b/composables/useProductsList.ts index 98f959c..04f9425 100644 --- a/composables/useProductsList.ts +++ b/composables/useProductsList.ts @@ -8,7 +8,7 @@ export const useProductsList = () => { name: product?.name, price: product?.price, variations: product?.variations, - images: product?.images?.splice(0, 5), + images: product?.images?.slice(0, 5), })) ?? []) return { diff --git a/pages/index.vue b/pages/index.vue index d16ff8c..09460d0 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -3,17 +3,13 @@
- {{ productCardData }}
-
-