]> git.immae.eu Git - github/fretlink/time-picker.git/blobdiff - src/Combobox.jsx
Fixed unwanted exception on missed value
[github/fretlink/time-picker.git] / src / Combobox.jsx
index 36b61cca13712b78fe33f1977823daa8d5d5c815..477c5eea5aa9e2a1d5f869f21047840f9d427139 100644 (file)
@@ -170,7 +170,7 @@ const Combobox = React.createClass({
   },
 
   isAM() {
-    const { value } = this.props;
+    const value = (this.props.value || this.props.defaultOpenValue);
     return value.hour() >= 0 && value.hour() < 12;
   },