1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 21:50:15 +00:00

I have a fever, and the only cure is more typecheck

This commit is contained in:
✨ Audrey ✨
2025-03-20 23:10:53 -04:00
parent 8f7b08aa16
commit fc2421b53a
3 changed files with 3 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
<bit-section *ngIf="achievements.size > 0">
<bit-section *ngIf="achievements.length > 0">
<bit-section-header>
<h2 class="tw-font-bold" bitTypography="h6">
{{ "achievements" | i18n }}

View File

@@ -44,7 +44,7 @@ import { iconMap } from "./icons/icon-map";
],
})
export class AchievementsListComponent {
protected achievements: Map<AchievementId, Achievement>;
protected achievements: Array<Achievement>;
private _earned: Map<AchievementId, AchievementEarnedEvent> = new Map();
private _progress: Map<MetricId, AchievementProgressEvent> = new Map();
@@ -53,7 +53,7 @@ export class AchievementsListComponent {
private accountService: AccountService,
zone: NgZone,
) {
this.achievements = achievementService.achievementMap();
this.achievements = Array.from(achievementService.achievementMap().values());
this.accountService.activeAccount$
.pipe(