Just fix original bug
Some checks are pending
Tests / tests (push) Waiting to run

This commit is contained in:
Dustin Brett 2024-10-26 08:58:30 -07:00
parent 2fa4ea9fb1
commit acfcee0798

View File

@ -851,15 +851,13 @@ export const getFileType = (extension: string): string => {
const ext = extension.toUpperCase();
switch (ext) {
case SHORTCUT_EXTENSION:
case ".URL":
return "Shortcut";
case ".TXT":
return "Text Document";
case ".RTF":
case ".WHTML":
return "Rich Text Document";
case ".URL":
return "Shortcut";
default:
return extensions[extension]?.type || `${ext.replace(".", "")} File`;
}