@tilde-nlp/ngx-common 2.0.21 → 2.0.22

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.
@@ -498,7 +498,7 @@ class DateAgoPipe {
498
498
  calculateDateAgo(value, enableMultiplePostfix) {
499
499
  if (value) {
500
500
  const seconds = Math.floor((new Date().getTime() - new Date(value).getTime()) / 1000);
501
- if (seconds < this.justNowSeconds) // less than 30 seconds ago will show as 'Just now'
501
+ if (seconds < this.justNowSeconds || Number.isNaN(seconds)) // less than 30 seconds ago will show as 'Just now'
502
502
  return { key: this.justNowKey };
503
503
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
504
504
  let counter;