diff options
Diffstat (limited to 'src/module/Header.jsx')
-rw-r--r-- | src/module/Header.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/module/Header.jsx b/src/module/Header.jsx index c2f8eef..fec02af 100644 --- a/src/module/Header.jsx +++ b/src/module/Header.jsx | |||
@@ -88,9 +88,9 @@ const Header = React.createClass({ | |||
88 | 88 | ||
89 | // if time value is disabled, response warning. | 89 | // if time value is disabled, response warning. |
90 | if ( | 90 | if ( |
91 | disabledHours.indexOf(value.getHourOfDay()) >= 0 || | 91 | (disabledHours && disabledHours.indexOf(value.getHourOfDay()) >= 0) || |
92 | disabledMinutes.indexOf(value.getMinutes()) >= 0 || | 92 | (disabledMinutes && disabledMinutes.indexOf(value.getMinutes()) >= 0) || |
93 | disabledSeconds.indexOf(value.getSeconds()) >= 0 | 93 | (disabledSeconds && disabledSeconds.indexOf(value.getSeconds()) >= 0) |
94 | ) { | 94 | ) { |
95 | this.setState({ | 95 | this.setState({ |
96 | invalid: true, | 96 | invalid: true, |