mirror of
https://github.com/HirziDevs/PteroStats
synced 2026-09-19 06:29:59 +00:00
fixes
This commit is contained in:
@@ -8,13 +8,13 @@ module.exports = (value, type) => {
|
||||
if (!type) {
|
||||
type = "mb";
|
||||
} else {
|
||||
type = type.toLowerCase();
|
||||
type = type?.toLowerCase() || "mb";
|
||||
|
||||
if (!SUPPORTED_TYPES.includes(type)) {
|
||||
type = "mb";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
let result = "";
|
||||
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user