Skip to content

Commit 73bb5d0

Browse files
committed
fix: fixed start_dt logic
1 parent 72300fc commit 73bb5d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

frontend/src/Components/ClassLayout.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,7 @@ function ClassInfoCard({
133133
<div className="space-y-2">
134134
<h3 className="body">Class Dates:</h3>
135135
<p className="body-small">
136-
{classInfo.start_dt > getNextOccurrenceDateAsStr()
137-
? classInfo.start_dt
138-
: textMonthLocalDate(getNextOccurrenceDateAsStr())}
136+
{classInfo.start_dt && textMonthLocalDate(classInfo.end_dt)}{' '}
139137
&ndash;{' '}
140138
{classInfo.end_dt
141139
? textMonthLocalDate(classInfo.end_dt)

0 commit comments

Comments
 (0)