diff --git a/src/modules/Clock.jsx b/src/modules/Clock.jsx index c27d8ad6..d979740f 100644 --- a/src/modules/Clock.jsx +++ b/src/modules/Clock.jsx @@ -23,8 +23,7 @@ export default class Clock extends React.Component { if (h > 12) h = h - 12; - if (h < 12) this.setState({ date: h + ':' + m, ampm: ampm }); - else this.setState({ date: h + ':' + m, ampm: ampm }); + this.setState({ date: h + ':' + m, ampm: ampm }); this.timeout = setTimeout(() => this.startTime(), 500); }