🐛 fix(locales): Order recharge related fields

This commit is contained in:
web@ppanel
2025-02-27 14:53:19 +07:00
parent d5847faeda
commit 35210fe8cf
32 changed files with 115 additions and 17 deletions
+4 -4
View File
@@ -13,8 +13,8 @@ async function getVersion() {
async function getVersionPath() {
return getVersion()
.then(version => `${BASE_URL}@${version}`)
.catch(error => {
.then((version) => `${BASE_URL}@${version}`)
.catch((error) => {
console.warn('Error fetching the version:', error);
return BASE_URL;
});
@@ -51,7 +51,7 @@ type TutorialItem = {
};
const processIcon = (item: TutorialItem) => {
if ("icon" in item && typeof item.icon === 'string' && !item.icon.startsWith('http')) {
if ('icon' in item && typeof item.icon === 'string' && !item.icon.startsWith('http')) {
item.icon = `${BASE_URL}/${item.icon}`;
}
};
@@ -66,7 +66,7 @@ export async function getTutorialList() {
Object.values(navigation)
.flat()
.forEach(item => {
.forEach((item) => {
item.subItems?.forEach(processIcon);
});