diff --git a/com.twin.app.shoptime/src/views/DetailPanel/ProductOverview/ProductPriceDisplay/ShopByMobilePriceDisplay/ShopByMobilePriceDisplay.jsx b/com.twin.app.shoptime/src/views/DetailPanel/ProductOverview/ProductPriceDisplay/ShopByMobilePriceDisplay/ShopByMobilePriceDisplay.jsx index a46fb901..05f56851 100644 --- a/com.twin.app.shoptime/src/views/DetailPanel/ProductOverview/ProductPriceDisplay/ShopByMobilePriceDisplay/ShopByMobilePriceDisplay.jsx +++ b/com.twin.app.shoptime/src/views/DetailPanel/ProductOverview/ProductPriceDisplay/ShopByMobilePriceDisplay/ShopByMobilePriceDisplay.jsx @@ -9,6 +9,12 @@ import usePriceInfo from '../../../../../hooks/usePriceInfo'; import { $L } from '../../../../../utils/helperMethods'; import css from './ShopByMobilePriceDisplay.module.less'; +// 파트너명에서 "Peacock | Shop The Moment" 형식일 때 "Peacock"만 추출 +const extractPartnerName = (name) => { + if (!name) return name; + return name.includes(' | ') ? name.split(' | ')[0].trim() : name; +}; + export default function ShopByMobilePriceDisplay({ priceData, priceInfo, @@ -26,6 +32,10 @@ export default function ShopByMobilePriceDisplay({ orderPhnNo, } = priceData; + // 파트너명 정규화 + const cleanPatncNm = useMemo(() => extractPartnerName(patncNm), [patncNm]); + const cleanPatnrName = useMemo(() => extractPartnerName(patnrName), [patnrName]); + const { discountRate, rewardFlag, @@ -50,6 +60,8 @@ export default function ShopByMobilePriceDisplay({ [isOriginalPriceEmpty, isDiscountedPriceEmpty, price5, offerInfo] ); + + const renderPriceItem = useCallback(() => { if (priceData && !promotionCode) { if (rewd) { @@ -57,9 +69,9 @@ export default function ShopByMobilePriceDisplay({