@sunbird-cb/toc 0.35.9 → 0.35.10

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.
@@ -24318,7 +24318,7 @@ class AppTocHomeV2Component {
24318
24318
  }
24319
24319
  showBadgeIcon() {
24320
24320
  const badgeDetails = this.baseContentReadData?.badgeDetails_v1;
24321
- if (!badgeDetails || !badgeDetails.length || badgeDetails?.[0]?.criteria == 'partialRandomCompletion') {
24321
+ if (!badgeDetails || !badgeDetails.length) {
24322
24322
  return false;
24323
24323
  }
24324
24324
  const badge = badgeDetails[0];
@@ -26701,7 +26701,7 @@ class AppTocCiosHomeComponent {
26701
26701
  }
26702
26702
  showBadgeIcon() {
26703
26703
  const badgeDetails = this.extContentReadData?.badgeDetails_v1;
26704
- if (!badgeDetails || !badgeDetails.length || badgeDetails?.[0]?.criteria == 'partialRandomCompletion') {
26704
+ if (!badgeDetails || !badgeDetails.length) {
26705
26705
  return false;
26706
26706
  }
26707
26707
  const badge = badgeDetails[0];