π A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!
Vue awesomedashboarddockerhomelabhomepagemitnodejsorganizationproductivitypwaself-hostedstartpagevue
π Correct DeepScan issue.
Chris Nielsenf46bcc2eddde
diff --git a/src/utils/MiscHelpers.js b/src/utils/MiscHelpers.jsindex 91b4f2cf..b3bbbd36 100644--- a/src/utils/MiscHelpers.js+++ b/src/utils/MiscHelpers.js@@ -153,7 +153,7 @@ export const getTimeDifference = (startTime, endTime) => {];for (let idx = 0; idx < periods.length; idx += 1) {- if (diff < periods[idx + 1]?.value ?? Infinity) {+ if (diff < (periods[idx + 1]?.value ?? Infinity)) {const period = periods[idx];const value = divide(diff, period.value);const noun = value === 1 ? period.noun : `${period.noun}s`;