This commit is contained in:
ShreshthTiwari
2024-03-18 21:47:34 +07:00
committed by Hirzi
parent 1659032c21
commit 064acca723
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -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) {