Skip to content

Commit

Permalink
MAT-7680: remove unnecessary conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
etan-sb committed Jan 2, 2025
1 parent 161e766 commit 59180d0
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,10 @@ const TimeComponent = ({
views={["hours", "minutes", "seconds"]}
data-testid={`time-field-${label}`}
handleTimeChange={(time) => {
if (time) {
const formatted = time.format(TIME_FORMAT);
const formatted = time.format(TIME_FORMAT);

setTime(time);
onChange(formatted);
}
setTime(time);
onChange(formatted);
}}
value={time}
/>
Expand Down

0 comments on commit 59180d0

Please sign in to comment.