diff --git a/src/pages/myStore/index.page.tsx b/src/pages/myStore/index.page.tsx index 96cff00..7527c7c 100644 --- a/src/pages/myStore/index.page.tsx +++ b/src/pages/myStore/index.page.tsx @@ -32,6 +32,9 @@ const StoreListIdPage = () => { // 가게 이미지 const [imgFile, setImgFile] = useState(''); + // 기본 시급 + const [originalHourlyPay, setOriginalHourlyPay] = useState(0); + // 가게 설명 const [textExplain, setTextExplain] = useState(''); @@ -70,6 +73,7 @@ const StoreListIdPage = () => { setAddressSelected(shopData.address1); setImgFile(shopData.imageUrl); setTextExplain(shopData.description); + setOriginalHourlyPay(shopData.originalHourlyPay); }, [user?.id, user?.shop?.item]); // 무한 스크롤 @@ -278,17 +282,21 @@ const StoreListIdPage = () => { {i.item.hourlyPay.toLocaleString('ko-KR')}원 - - - 기존 시급보다{' '} - {getPayIncreaseRate( - i.item.hourlyPay, - user!.shop!.item.originalHourlyPay - )}{' '} - % - - - + {originalHourlyPay >= i.item.hourlyPay ? ( +
+ ) : ( + + + 기존 시급보다{' '} + {getPayIncreaseRate( + i.item.hourlyPay, + user!.shop!.item.originalHourlyPay + )}{' '} + % + + + + )} ))}