Web:Login: delete useless code

This commit is contained in:
Timofey Boyko 2023-02-01 11:50:45 +03:00
parent 440e80e9d3
commit 1dd4f2b42d

View File

@ -38,14 +38,7 @@ export const getScripts = (assets: assetsType): string[] | void => {
};
export const loadPath = (language: string, nameSpace: string): string => {
let path = translations?.get(language)?.get(nameSpace);
const splitted = path.split("/");
const length = splitted.length;
path = `/${splitted[length - 3]}/${splitted[length - 2]}/${
splitted[length - 1]
}`;
const path = translations?.get(language)?.get(nameSpace);
return path;
};