Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ› Correct DeepScan issue.

Chris Nielsenf46bcc2eddde
diff --git a/src/utils/MiscHelpers.js b/src/utils/MiscHelpers.js
index 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`;