@masterteam/delegations 0.0.31 → 0.0.32

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.
@@ -2634,8 +2634,13 @@ class DelegationsList {
2634
2634
  return this.activeTab() === 'my' ? row.delegatedUser : row.delegator;
2635
2635
  }
2636
2636
  translateTab(key, fallback) {
2637
- const translated = this.transloco.translate(key).trim();
2638
- return translated && translated !== key ? translated : fallback;
2637
+ if (!key)
2638
+ return fallback;
2639
+ const translated = this.transloco.translate(key);
2640
+ if (typeof translated !== 'string')
2641
+ return fallback;
2642
+ const label = translated.trim();
2643
+ return label && label !== key ? label : fallback;
2639
2644
  }
2640
2645
  viewDetails(row) {
2641
2646
  this.modal.openModal(DelegationDetailDrawer, 'drawer', {