Browse Source

Check date for real.

feature/bike-tracking
Drew Larson 8 years ago
parent
commit
d47050a92d
  1. 2
      bikeshop_project/assets/js/bikes/components/BikeForm/index.jsx

2
bikeshop_project/assets/js/bikes/components/BikeForm/index.jsx

@ -217,7 +217,7 @@ class BikeForm extends React.Component {
/> />
</div> </div>
<div className="mdl-cell mdl-cell--2-col"> <div className="mdl-cell mdl-cell--2-col">
<FlatButton label="Check" onTouchTap={this.handleCpicCheck} disabled={!!cpic_searched_at} primary /> <FlatButton label="Check" onTouchTap={this.handleCpicCheck} disabled={moment(cpic_searched_at).isValid()} primary />
</div> </div>
</div> </div>
} }

Loading…
Cancel
Save