From e9044ae95659f0fdf928e0cba0abef30835f808d Mon Sep 17 00:00:00 2001 From: Matthew Nickson Date: Mon, 23 Jan 2023 18:10:45 +0000 Subject: [PATCH] Removed repetitiion of % Signed-off-by: Matthew Nickson --- src/components/Uptime.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Uptime.vue b/src/components/Uptime.vue index 09a531a59..afb82fa5e 100644 --- a/src/components/Uptime.vue +++ b/src/components/Uptime.vue @@ -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 + "%"; }