Skip to content

Commit

Permalink
fix: type error
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Aug 12, 2022
1 parent 585add3 commit 1acfbe2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GZCTF/ClientApp/src/pages/admin/games/Index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ const Games: FC = () => {
<tbody>
{games &&
games.map((game) => {
const startTime = new Date(game.start)
const endTime = new Date(game.end)
const startTime = dayjs(game.start)
const endTime = dayjs(game.end)
const status = getGameStatus(startTime, endTime)
const color = GameColorMap.get(status)

Expand Down

0 comments on commit 1acfbe2

Please sign in to comment.