From 9414a35fe81c23722ba567af19a423ab8ca7a811 Mon Sep 17 00:00:00 2001 From: David Ralph Date: Sun, 6 Oct 2019 10:37:57 +0100 Subject: [PATCH] the strings are the same --- src/modules/Clock.jsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); }