Remove useless assignment
This commit is contained in:
committed by
Bill Thornton
parent
1ca4281fe2
commit
37fd4feb55
@@ -230,7 +230,6 @@ export function getDisplayTime(date) {
|
||||
const timeLower = time.toLowerCase();
|
||||
|
||||
if (timeLower.indexOf('am') !== -1 || timeLower.indexOf('pm') !== -1) {
|
||||
time = timeLower;
|
||||
let hour = date.getHours() % 12;
|
||||
const suffix = date.getHours() > 11 ? 'pm' : 'am';
|
||||
if (!hour) {
|
||||
|
||||
Reference in New Issue
Block a user