File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,14 +16,14 @@ export default class DateTimePicker extends PureComponent {
16
16
static getDerivedStateFromProps ( nextProps , prevState ) {
17
17
const nextState = { } ;
18
18
19
- if ( nextProps . isCalendarOpen !== prevState . propsIsCalendarOpen ) {
19
+ if ( nextProps . isCalendarOpen !== prevState . isCalendarOpenProps ) {
20
20
nextState . isCalendarOpen = nextProps . isCalendarOpen ;
21
- nextState . propsIsCalendarOpen = nextProps . isCalendarOpen ;
21
+ nextState . isCalendarOpenProps = nextProps . isCalendarOpen ;
22
22
}
23
23
24
- if ( nextProps . isClockOpen !== prevState . propsIsClockOpen ) {
24
+ if ( nextProps . isClockOpen !== prevState . isClockOpenProps ) {
25
25
nextState . isClockOpen = nextProps . isClockOpen ;
26
- nextState . propsIsClockOpen = nextProps . isClockOpen ;
26
+ nextState . isClockOpenProps = nextProps . isClockOpen ;
27
27
}
28
28
29
29
return nextState ;
You can’t perform that action at this time.
0 commit comments