Skip to content

Commit

Permalink
🔧 Fix selected Date issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Asing1001 committed Aug 30, 2023
1 parent 20bd535 commit b8dd465
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app/components/theaterDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ class TheaterDetail extends React.PureComponent<
this.isSelectedDate(date) ? grey500 : null
}
key={index}
onClick={() =>
this.setState({ selectedDate: new Date(date) })
}
onClick={() => {
this.setState({ selectedDate: moment(date).toDate() })
}}
>
{moment(date).format('MM/DD')}
</Chip>
Expand Down

0 comments on commit b8dd465

Please sign in to comment.