Removed repetitiion of %

Signed-off-by: Matthew Nickson <mnickson@sidingsmedia.com>
This commit is contained in:
Matthew Nickson 2023-01-23 18:10:45 +00:00
parent 86bcb85e9b
commit e9044ae956
No known key found for this signature in database
GPG key ID: BF229DCFD4748E05

View file

@ -35,8 +35,8 @@ export default {
if (this.$root.uptimeList[key] !== undefined) {
let result = Math.round(this.$root.uptimeList[key] * 10000) / 100;
// Only perform sanity check on status page. See louislam/uptime-kuma#2628
if (this.$route.path.startsWith("/status")) {
return result > 100 ? "100%" : result + "%";
if (this.$route.path.startsWith("/status") && result > 100) {
return "100%";
} else {
return result + "%";
}