Skip to content

Commit

Permalink
Fix ts error
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Dec 16, 2017
1 parent b49c0ac commit 7a98f62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/date-picker/RangePicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ export default class RangePicker extends React.Component<any, any> {
handleChange = (value: moment.Moment[]) => {
const props = this.props;
if (!('value' in props)) {
this.setState(({ showDate }) => ({
this.setState(({ showDate }: { showDate: boolean }) => ({
value,
showDate: getShowDateFromValue(value) || showDate,
}));
Expand Down

0 comments on commit 7a98f62

Please sign in to comment.