@sumaris-net/ngx-components 2.4.28 → 2.4.30

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.
@@ -3323,7 +3323,7 @@ class DurationPipe {
3323
3323
  transform(value, args) {
3324
3324
  if (!value)
3325
3325
  return '';
3326
- const unit = args && args.unit || 'hours';
3326
+ const unit = args?.unit || args || 'hours';
3327
3327
  // try with moment
3328
3328
  const duration = toDuration(value, unit);
3329
3329
  const days = duration.days();