- updates from lifecyle component.
Signed-off-by: Dave Richer <dave@imexsystems.ca>
This commit is contained in:
@@ -15,7 +15,7 @@ const durationToHumanReadable = (duration) => {
|
||||
if (days) parts.push(days + ' day' + (days > 1 ? 's' : ''));
|
||||
if (hours) parts.push(hours + ' hour' + (hours > 1 ? 's' : ''));
|
||||
if (minutes) parts.push(minutes + ' minute' + (minutes > 1 ? 's' : ''));
|
||||
if (!minutes && !hours && !days && !months && !years && seconds) parts.push(seconds + ' second' + (seconds > 1 ? 's' : ''));
|
||||
if (seconds) parts.push(seconds + ' second' + (seconds > 1 ? 's' : ''));
|
||||
|
||||
return parts.join(', ');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user