diff --git a/frontend/components/global/product/ProductCard.vue b/frontend/components/global/product/ProductCard.vue index 745cdb8..f96e0dc 100644 --- a/frontend/components/global/product/ProductCard.vue +++ b/frontend/components/global/product/ProductCard.vue @@ -22,11 +22,17 @@ type Props = { // props const props = defineProps(); -const { id } = toRefs(props); +const { id, colors } = toRefs(props); // state const { colorObject } = useImageColor(`#product-image-${id.value}`); + +// computed + +const limitedColors = computed(() => { + return colors.value.slice(0, 3); +});