From 27632ed48bb2785a4804302b56029e272f39a5cc Mon Sep 17 00:00:00 2001 From: KenTandrian Date: Fri, 22 May 2026 10:52:52 +0700 Subject: [PATCH] feat(client): enforce immutability --- .../home-market/home-market.component.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/client/src/app/components/home-market/home-market.component.ts b/apps/client/src/app/components/home-market/home-market.component.ts index 56af7a7f2..da1b94f4e 100644 --- a/apps/client/src/app/components/home-market/home-market.component.ts +++ b/apps/client/src/app/components/home-market/home-market.component.ts @@ -36,23 +36,23 @@ import { DeviceDetectorService } from 'ngx-device-detector'; }) export class GfHomeMarketComponent implements OnInit { protected benchmarks: Benchmark[]; - protected deviceType: string; + protected readonly deviceType: string; protected fearAndGreedIndex: number; - protected fearLabel = $localize`Fear`; - protected greedLabel = $localize`Greed`; + protected readonly fearLabel = $localize`Fear`; + protected readonly greedLabel = $localize`Greed`; protected hasPermissionToAccessFearAndGreedIndex: boolean; protected historicalDataItems: HistoricalDataItem[]; protected readonly numberOfDays = 365; protected user: User; - private info: InfoItem; + private readonly info: InfoItem; public constructor( - private changeDetectorRef: ChangeDetectorRef, - private dataService: DataService, - private destroyRef: DestroyRef, - private deviceDetectorService: DeviceDetectorService, - private userService: UserService + private readonly changeDetectorRef: ChangeDetectorRef, + private readonly dataService: DataService, + private readonly destroyRef: DestroyRef, + private readonly deviceDetectorService: DeviceDetectorService, + private readonly userService: UserService ) { this.deviceType = this.deviceDetectorService.getDeviceInfo().deviceType; this.info = this.dataService.fetchInfo();