Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/components/Post/PostCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@ export default function PostCard({
closed,
}: PostCardProps) {
const { rateText } = getPayRateText(hourlyPay, originalHourlyPay);
const isPast = isPastDate(
startsAt ?? Date.now().toLocaleString(),
workhour ?? 0,
);
const isPast = isPastDate(startsAt ?? Date.now().toLocaleString());
const isDimmed = closed || isPast;

const timeRange =
Expand Down Expand Up @@ -107,7 +104,7 @@ export default function PostCard({
<p
className={cn(
"body2-regular sm:body1-regular break-words",
description === "등록된 가게 정보가 없습니다."
description === "(등록된 가게 정보가 없습니다.)"
? "text-gray-40"
: "text-black",
)}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/ShopPage/ShopPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default function ShopPage() {
},
});
}
}, [user, openModal, closeModal, navigate]);
}, []);

const observer = useRef<IntersectionObserver | null>(null);

Expand Down Expand Up @@ -137,7 +137,7 @@ export default function ShopPage() {
description={
shop.description && shop.description.trim() !== ""
? shop.description
: "등록된 가게 정보가 없습니다"
: "(등록된 가게 정보가 없습니다.)"
}
isShopInfo={true}
backgroundColor="bg-red-10"
Expand Down