Skip to content

Commit 1e53531

Browse files
authored
Merge pull request #1191 from ccppjsrb/#1190-fix-permanent-contest-date
常設コンテストの開催日が空欄になるように修正 #1190
2 parents 4cf2493 + ba083b3 commit 1e53531

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

atcoder-problems-frontend/src/pages/ListPage/ListTable.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,10 @@ export const ListTable: React.FC<Props> = (props) => {
140140
.map(
141141
(p: MergedProblem): ProblemRowData => {
142142
const contest = contestMap?.get(p.contest_id);
143-
const contestDate = contest
144-
? formatMomentDate(parseSecond(contest.start_epoch_second))
145-
: "";
143+
const contestDate =
144+
contest && contest.start_epoch_second > 0
145+
? formatMomentDate(parseSecond(contest.start_epoch_second))
146+
: "";
146147
const contestTitle = contest ? contest.title : "";
147148

148149
const status = statusLabelMap.get(p.id) ?? noneStatus();

0 commit comments

Comments
 (0)