Skip to content

Commit

Permalink
fix(webui): groupStat.last should fallback to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
shigma committed May 2, 2021
1 parent 767853e commit 361ea7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-webui/src/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export class Statistics implements DataSource<Statistics.Payload> {
platform,
assignee,
value: messageMap[id],
last: data.daily[0].group[id],
last: data.daily[0].group[id] || 0,
})
}
}
Expand All @@ -215,7 +215,7 @@ export class Statistics implements DataSource<Statistics.Payload> {
platform,
name: name || key,
value: messageMap[key],
last: data.daily[0].group[key],
last: data.daily[0].group[key] || 0,
assignee: this.ctx.bots[`${platform}:${assignee}`]?.selfId || '',
})
}
Expand Down

0 comments on commit 361ea7c

Please sign in to comment.