remove promise bug

This commit is contained in:
Eudes Inácio
2022-12-20 17:06:19 +01:00
parent c8d62760ce
commit 111214d231
22 changed files with 128 additions and 42 deletions
+5 -1
View File
@@ -116,6 +116,8 @@ export class ProfilePage implements OnInit {
this.DataArray.push(notificationObject)
});
this.notificationdata = this.DataArray
}).catch((error) => {
console.error('storage getnotification: ',error)
})
/* await new Promise(resolve => setTimeout(resolve, 1000));
await this.getNotificationData(); */
@@ -193,7 +195,9 @@ export class ProfilePage implements OnInit {
this.storageservice.store("Notifications", JSON.stringify(this.notificationdata)).then(() => {
this.storageservice.get("Notifications").then((value) => {
});
}).catch((error) => {
console.error('storage delete notification: ',error)
})
});
}