diff --git a/web/alert/index.js b/web/alert/index.js index 9a68d65..48ecc49 100644 --- a/web/alert/index.js +++ b/web/alert/index.js @@ -97,7 +97,7 @@ $(async function () { class Announcement { constructor(data){ this.user = data.user; - this.tpe = data.tpe; + this.tpe = data.tpe || 'start'; this.details = data.details || {}; } }