Skip to content

Commit 7eded04

Browse files
hrocha16martijnrusschen
authored andcommitted
fix DateRange endDate doc bug (Hacker0x01#1234)
1 parent 0803909 commit 7eded04

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docs-site/src/examples/date_range.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ export default class DateRange extends React.Component {
1616
endDate = endDate || this.state.endDate
1717

1818
if (startDate.isAfter(endDate)) {
19-
var temp = startDate
20-
startDate = endDate
21-
endDate = temp
19+
endDate = startDate
2220
}
2321

2422
this.setState({ startDate, endDate })

0 commit comments

Comments
 (0)