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:
@@ -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 }}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user