Skip to content

Commit

Permalink
fix(fe): fix contest list toggle problem (#1967)
Browse files Browse the repository at this point in the history
* fix(fe): fix contest list toggle problem

* fix(fe): handle isVisible type error

* fix(fe): change isVisible type

* fix(fe): fix isVisible type

---------

Co-authored-by: jimin9038 <jimin9038@g.skku.edu>
  • Loading branch information
jihorobert and jimin9038 authored Aug 21, 2024
1 parent 518b4ec commit 278df07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/frontend/app/admin/contest/_components/Columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ function VisibleCell({ row }: { row: Row<DataTableContest> }) {
id="hidden-mode"
checked={row.original.isVisible}
onCheckedChange={() => {
row.original.isVisible = !row.original.isVisible
const currentTime = dateFormatter(new Date(), 'YYYY-MM-DD HH:mm:ss')
const startTime = dateFormatter(
row.original.startTime,
Expand All @@ -63,7 +64,7 @@ function VisibleCell({ row }: { row: Row<DataTableContest> }) {
startTime: row.original.startTime,
endTime: row.original.endTime,
description: row.original.description,
isVisible: !row.original.isVisible,
isVisible: row.original.isVisible,
isRankVisible: row.original.isRankVisible
}
}
Expand Down

0 comments on commit 278df07

Please sign in to comment.