ets-fe-ng-sdk 20.0.12 → 20.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3684,7 +3684,14 @@ class UtilityService {
3684
3684
  if (!minutes)
3685
3685
  return null;
3686
3686
  const ret = this.minutesToDayHourMin(minutes);
3687
- return `${ret.days}days ${ret.hours}hrs ${ret.mins}mins`.trim();
3687
+ return [
3688
+ [ret.days, `day`],
3689
+ [ret.hours, 'hour'],
3690
+ [ret.mins, 'mins'],
3691
+ ]
3692
+ .filter(([val], i) => !!val || i == 2)
3693
+ .map(([val, unit]) => `${val}${unit}${val == 1 ? '' : 's'}`)
3694
+ .join(' ');
3688
3695
  };
3689
3696
  /**
3690
3697
  * Converts days, hours, and minutes to a string in the format "HH:MM".