Item card Price display issue
This commit is contained in:
parent
b6e76336a4
commit
da2b8ca938
|
|
@ -5182,7 +5182,7 @@ const BSItemCard = (props) => {
|
|||
if (preferenceSingleSales && item.OnePcsAvailable === 'Y') {
|
||||
return (
|
||||
item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]
|
||||
?.OnePcsPrice || null
|
||||
?.OnePcsPrice || 0
|
||||
);
|
||||
// OnePcsPrice
|
||||
}
|
||||
|
|
@ -5200,7 +5200,7 @@ const BSItemCard = (props) => {
|
|||
return firstVariantDetails;
|
||||
} else {
|
||||
// Handle the case where no variant satisfies the condition
|
||||
return null; // or any other value you want to return
|
||||
return 0; // or any other value you want to return
|
||||
}
|
||||
};
|
||||
const ItemMRP = (item) => {
|
||||
|
|
@ -5209,7 +5209,7 @@ const BSItemCard = (props) => {
|
|||
if (preferenceSingleSales && item.OnePcsAvailable === 'Y') {
|
||||
return (
|
||||
item?.ProductDetail?.[0]?.ProdVariantDetails?.[0]?.StockDetails?.[0]
|
||||
?.OnePcsPrice || null
|
||||
?.OnePcsPrice || 0
|
||||
);
|
||||
// OnePcsPrice
|
||||
}
|
||||
|
|
@ -5227,7 +5227,7 @@ const BSItemCard = (props) => {
|
|||
return firstVariantDetails;
|
||||
} else {
|
||||
// Handle the case where no variant satisfies the condition
|
||||
return null; // or any other value you want to return
|
||||
return 0; // or any other value you want to return
|
||||
}
|
||||
};
|
||||
const ItemSize = (item) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue