Skip to content

Commit 3cd1eee

Browse files
committed
fix: 등록된 가게 정보 없을 때 텍스트 수정
1 parent d02f894 commit 3cd1eee

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/components/Post/PostCard.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,7 @@ export default function PostCard({
3333
closed,
3434
}: PostCardProps) {
3535
const { rateText } = getPayRateText(hourlyPay, originalHourlyPay);
36-
const isPast = isPastDate(
37-
startsAt ?? Date.now().toLocaleString(),
38-
workhour ?? 0,
39-
);
36+
const isPast = isPastDate(startsAt ?? Date.now().toLocaleString());
4037
const isDimmed = closed || isPast;
4138

4239
const timeRange =
@@ -107,7 +104,7 @@ export default function PostCard({
107104
<p
108105
className={cn(
109106
"body2-regular sm:body1-regular break-words",
110-
description === "등록된 가게 정보가 없습니다."
107+
description === "(등록된 가게 정보가 없습니다.)"
111108
? "text-gray-40"
112109
: "text-black",
113110
)}

src/pages/ShopPage/ShopPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ export default function ShopPage() {
137137
description={
138138
shop.description && shop.description.trim() !== ""
139139
? shop.description
140-
: "등록된 가게 정보가 없습니다"
140+
: "(등록된 가게 정보가 없습니다.)"
141141
}
142142
isShopInfo={true}
143143
backgroundColor="bg-red-10"

0 commit comments

Comments
 (0)