Skip to content

Node.js based forum software built for the modern web

hey husky wtf you doin'

Julian Lamaef1c155cc95
diff --git a/public/src/utils.js b/public/src/utils.js
index 84bc2daff4..74ecc9231c 100644
--- a/public/src/utils.js
+++ b/public/src/utils.js
@@ -321,7 +321,7 @@
if (typeof target === 'number') {
return String.fromCharCode(target);
- } if (typeof target === 'string') {
+ } else if (typeof target === 'string') {
return target;
}
@@ -487,7 +487,7 @@
}
if (n > 999999) {
return (n / 1000000).toFixed(1) + 'm';
- } if (n > 999) {
+ } else if (n > 999) {
return (n / 1000).toFixed(1) + 'k';
}
return n;