Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Remove unused if statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
NateRadebaugh committed Mar 28, 2019
1 parent 53f77d2 commit 2e8ee1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,8 @@ class DateTime extends React.Component<DateTimeProps, DateTimeState> {
),
open: open
});
} else if (typeof this.props.onChange === "function") {
this.props.onChange(date);
} else {
this.props.onChange!(date);
}

if (close) {
Expand Down

0 comments on commit 2e8ee1b

Please sign in to comment.