|
|
@ -52,16 +52,17 @@ export class LandingPageComponent implements OnDestroy, OnInit { |
|
|
|
private dataService: DataService, |
|
|
|
private deviceService: DeviceDetectorService |
|
|
|
) { |
|
|
|
const { countriesOfSubscribers, globalPermissions, statistics } = |
|
|
|
this.dataService.fetchInfo(); |
|
|
|
const { |
|
|
|
countriesOfSubscribers = [], |
|
|
|
globalPermissions, |
|
|
|
statistics |
|
|
|
} = this.dataService.fetchInfo(); |
|
|
|
|
|
|
|
if (countriesOfSubscribers) { |
|
|
|
for (const country of countriesOfSubscribers) { |
|
|
|
this.countriesOfSubscribersMap[country] = { |
|
|
|
value: 1 |
|
|
|
}; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.hasPermissionForStatistics = hasPermission( |
|
|
|
globalPermissions, |
|
|
|