Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private changeMaxHour = (hour: MaximumHours) => {
let maxTime = new Date(1995, 6, 30, hour);
if (hour === MaximumHours.NONE) {
maxTime = getDefaultMaxTime();
}
this.setState({ maxTime });
};
}