Skip to content

Commit 1f3377d

Browse files
committed
Fix notice typings
1 parent 4454d54 commit 1f3377d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/app/api/types/pool/pool-config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
export interface Notice {
22
date: string
3-
text: string
3+
text: {
4+
en: string
5+
}
46
}
57

68
export interface PoolConfig {

src/app/dashboard/dashboard.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class DashboardComponent {
3737
return this.noticesInTheLastWeekOrLess.length > 0
3838
}
3939

40-
getTranslatedNoticeText(notice) {
40+
public getTranslatedNoticeText(notice: Notice): string {
4141
return notice.text.en
4242
}
4343

0 commit comments

Comments
 (0)