|
|
@ -106,11 +106,13 @@ export class GfHomeOverviewComponent implements OnInit { |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
protected readonly unit = computed(() => { |
|
|
protected readonly unit = computed(() => { |
|
|
const user = this.user(); |
|
|
if (!this.showDetails()) { |
|
|
|
|
|
return '%'; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return this.showDetails() |
|
|
return this.deviceType() === 'mobile' |
|
|
? (user?.settings?.baseCurrency ?? DEFAULT_CURRENCY) |
|
|
? undefined |
|
|
: '%'; |
|
|
: (this.user()?.settings?.baseCurrency ?? DEFAULT_CURRENCY); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
private readonly dataService = inject(DataService); |
|
|
private readonly dataService = inject(DataService); |
|
|
|