diff --git a/scripts/NotificationManager.ts b/scripts/NotificationManager.ts index d2eca193..ae7ba85e 100644 --- a/scripts/NotificationManager.ts +++ b/scripts/NotificationManager.ts @@ -18,6 +18,10 @@ export default class NotificationManager { let body = await response.text() this.unseen = parseInt(body) + if(isNaN(this.unseen)) { + this.unseen = 0 + } + if(this.unseen > 99) { this.unseen = 99 }