diff --git a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx index c7bde1fe..d46b6239 100644 --- a/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx +++ b/com.twin.app.shoptime/src/components/TItemCard/TItemCard.jsx @@ -106,6 +106,7 @@ export default memo(function TItemCard({ [onClick, disabled] ); const _onFocus = useCallback(() => { + console.log("#priceLabel", priceLabel); if (onFocus) { onFocus(); } @@ -123,11 +124,14 @@ export default memo(function TItemCard({ ? "Sale price " + discountedPrice + ", " : ""; - const priceLabel = originalPrice - ? parseFloat(originalPrice.replace("$", "")) === 0 - ? " " + offerInfo - : " Original price " + originalPrice + ", " - : ""; + const priceLabel = + originalPrice && parseFloat(originalPrice.replace("$", "")) === 0 + ? offerInfo + ? " " + offerInfo + : "" + : originalPrice + ? " Original price " + originalPrice + ", " + : ""; const lastLabeltext = lastLabel ? lastLabel : ""; const firstLabeltext = firstLabel ? firstLabel + " " : ""; const soldOutText = soldoutFlag === "Y" ? "Sold Out " : "";