JSon bug on profile page fixed

This commit is contained in:
Eudes Inácio
2021-08-20 18:22:56 +01:00
parent 169f0ff3c2
commit c7812758cd
4 changed files with 40 additions and 5 deletions
+8 -2
View File
@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { AnimationController, ModalController } from '@ionic/angular';
import { AnimationController, ModalController,Platform } from '@ionic/angular';
import { SearchPage } from 'src/app/pages/search/search.page';
import { Router } from '@angular/router';
import { ProfileComponent } from '../headers/header-no-search/profile/profile.page';
@@ -31,6 +31,7 @@ export class HeaderPage implements OnInit {
private animationController: AnimationController,
private storageservice: StorageService,
private notificatioservice: NotificationsService,
private platform: Platform,
authService: AuthService
) {
this.loggeduser = authService.ValidatedUser;
@@ -42,7 +43,12 @@ export class HeaderPage implements OnInit {
ngOnInit() {
this.hideSearch();
this.notificationLengthData();
if (this.platform.is('desktop') || this.platform.is('mobileweb')) {
console.log('Notifications not supported')
} else {
this.notificationLengthData();
}
}