Skip to content

Commit

Permalink
fix: search dropdown minVariationPrice (#1278)
Browse files Browse the repository at this point in the history
## Description

## References
### Jira-link:
<!-- Put link to your task in Jira here -->
https://virtocommerce.atlassian.net/browse/VCST-1719
### Artifact URL:

https://vc3prerelease.blob.core.windows.net/packages/vc-theme-b2b-vue-2.4.0-pr-1278-3a29-3a292390.zip
  • Loading branch information
goldenmaya authored Aug 30, 2024
1 parent 66b3379 commit c4d1314
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{{ product.name }}
</VcProductTitle>

<VcProductPrice :actual-price="product.price.actual" :has-variations="product.hasVariations" />
<VcProductPrice :actual-price="price?.actual" :has-variations="product.hasVariations" />
</VcProductCard>
</template>

Expand All @@ -29,5 +29,7 @@ interface IProps {
defineEmits<IEmits>();
const props = defineProps<IProps>();
const price = computed(() => (props.product.hasVariations ? props.product.minVariationPrice : props.product.price));
const link = computed<RouteLocationRaw>(() => getProductRoute(props.product.id, props.product.slug));
</script>

0 comments on commit c4d1314

Please sign in to comment.