Skip to content

Commit 051e638

Browse files
committed
Update organizer homepage price display
1 parent 82ead3c commit 051e638

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

frontend/src/components/layouts/OrganizerHomepage/EventCard/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ export const EventCard: React.FC<EventCardProps> = ({event, primaryColor = '#8b5
174174
{lowestPrice !== null && (
175175
<div className={classes.priceSection}>
176176
<IconTicket size={14}/>
177-
<span className={lowestPrice === 0 ? classes.free : classes.price}>
178-
{lowestPrice === 0 ? (
177+
<span className={lowestPrice === 0 && highestPrice === 0 ? classes.free : classes.price}>
178+
{lowestPrice === 0 && highestPrice === 0 ? (
179179
t`Free`
180180
) : highestPrice !== null && highestPrice !== lowestPrice ? (
181181
`${formatCurrency(lowestPrice, event.currency)} - ${formatCurrency(highestPrice, event.currency)}`

frontend/src/components/layouts/OrganizerHomepage/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ interface OrganizerHomepageProps {
2525
}
2626

2727
const ScrollToTop = () => {
28-
const { pathname } = useLocation();
28+
const {pathname} = useLocation();
2929

3030
useEffect(() => {
3131
setTimeout(() => {
3232
window.scrollTo(0, 0);
33-
}, 100); // Delay to ensure the scroll happens after the page is rendered
33+
}, 100);
3434
}, [pathname]);
3535

3636
return null;
@@ -92,7 +92,7 @@ export const OrganizerHomepage = ({
9292

9393
return (
9494
<>
95-
<ScrollToTop />
95+
<ScrollToTop/>
9696
{/* Status Toggle Banner */}
9797
{organizer?.status && organizer?.id && (
9898
<StatusToggle

0 commit comments

Comments
 (0)