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