From 99fedee4ea42a430148af5e9284954809ac2cccc Mon Sep 17 00:00:00 2001 From: Peter Maquiran Date: Fri, 20 Aug 2021 12:23:20 +0100 Subject: [PATCH] Fix --- src/app/modals/profile/profile.page.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/modals/profile/profile.page.ts b/src/app/modals/profile/profile.page.ts index 256fd7574..e2136e974 100644 --- a/src/app/modals/profile/profile.page.ts +++ b/src/app/modals/profile/profile.page.ts @@ -162,6 +162,10 @@ export class ProfilePage implements OnInit { console.log("Delete notification first stata", this.notificationdata) this.notificationdata = this.notificationdata.filter(item=>item.index !=index ); + if(typeof(this.notificationdata) ) { + console.log('=_+_+_+_+_+_+_+_+_+_++_+_+_+_+_+_+_+_+_+_+_+_ not an object') + } + this.storageservice.store("Notifications",JSON.stringify(this.notificationdata)).then(() =>{ this.storageservice.get("Notifications").then((value) =>{ console.log("notfication state", value, )