Skip to content

Commit

Permalink
fix: existing event should retain the minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
gagahgk committed Feb 12, 2024
1 parent 7d859ef commit 9ed6993
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/_features/event/components/event-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default function EventForm({
existingEvent?.startTime
? {
hour: existingEvent.startTime.getHours(),
minute: 0,
minute: existingEvent.startTime.getMinutes(),
}
: {
hour: currentHour,
Expand All @@ -106,7 +106,7 @@ export default function EventForm({
? {
hour: existingEvent.endTime.getHours(),

minute: 0,
minute: existingEvent.endTime.getMinutes(),
}
: {
hour: currentHour == 23 ? 23 : currentHour + 1,
Expand Down

0 comments on commit 9ed6993

Please sign in to comment.