Skip to content

Commit

Permalink
fix(SiteUptimeChart): broken uptime average
Browse files Browse the repository at this point in the history
  • Loading branch information
BreadGenie committed Jul 4, 2024
1 parent 6bae98d commit 8196434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dashboard/src/views/site/SiteAnalyticsUptime.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default {
for (; i < this.data.length; i++) {
// there could be empty objects at the end of the array
// so we don't have to count them
if (!this.data[i].value) break;
if (typeof this.data[i].value !== 'number') break;
total += this.data[i].value;
}
Expand Down

0 comments on commit 8196434

Please sign in to comment.