removes extra spacing

This commit is contained in:
Alex Corey 2020-06-09 14:43:43 -04:00
parent 442d539ff8
commit 82010e4ba2

View File

@ -24,8 +24,8 @@ export function timeOfDay() {
const second = prependZeros(date.getSeconds());
const time =
hour > 12
? `${hour - 12}:${minute} :${second} PM`
: `${hour}:${minute}:${second}`;
? `${hour - 12}:${minute}:${second} PM`
: `${hour}:${minute}:${second} AM`;
return time;
}