1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-10 05:30:01 +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(

View File

@@ -17,7 +17,6 @@ export function progressEvent(name: MetricId, value: number = 1): AchievementPro
node: {
name: "an-installation-identifier-for-this-client-instance",
},
environment: "local",
version: "2025.3.1-innovation-sprint",
},
user: {
@@ -41,7 +40,6 @@ export function earnedEvent(name: AchievementId): AchievementEarnedEvent {
node: {
name: "an-installation-identifier-for-this-client-instance",
},
environment: "local",
version: "2025.3.1-innovation-sprint",
},
user: {