Skip to content

Commit

Permalink
UI-368: Removed price for resource with variants (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
GhitaNektt committed Jun 24, 2024
1 parent 6257e08 commit 1afd8a2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const model = computed({
function handleCheck(e: Event) {
emit('change', e, props.resource);
}
const hasVariants = computed(() => props.resource.variants && props.resource.variants.length > 0);
</script>

<template>
Expand All @@ -33,7 +35,7 @@ function handleCheck(e: Event) {
</div>
<div class="inventory-price">
<span v-if="showStock && resource.stock" class="stock">{{ resource.stock }} {{ stockLabel }}</span>
<p v-if="resource.price">
<p v-if="!hasVariants && resource.price">
{{ resource.price }}
</p>
</div>
Expand Down

0 comments on commit 1afd8a2

Please sign in to comment.