Skip to content

Commit

Permalink
Merge pull request #1667 from HSLdevcom/fix-set-time-again
Browse files Browse the repository at this point in the history
set time when it changes
  • Loading branch information
rrudd authored Jun 15, 2017
2 parents e52d3aa + b8c9c01 commit f4e37ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/component/ItineraryTimePicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ export default class ItineraryTimePicker extends React.Component {
oldMinute: initMin,
};

if (currentState.hours === undefined) {
if (Number(currentState.hours) !== Number(initHours)) {
newState.hours = initHours;
}
if (currentState.hours === undefined) {
if (Number(currentState.minutes) !== Number(initMin)) {
newState.minutes = initMin;
}
return newState;
Expand Down

0 comments on commit f4e37ca

Please sign in to comment.