Skip to content

Commit ba083b3

Browse files
committed
常設コンテスト(コンテスト終了後に常設コンテスト入りしたものは除く)はListページのProblem ListのDate欄が空欄になるように修正 #1190
1 parent 58aed3e commit ba083b3

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)