Skip to content

Commit

Permalink
mini optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
danielc-n committed Oct 23, 2024
1 parent da601fb commit e4ad641
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,10 @@ export default function TranslationHelpsMultimediaCard({
if (localizedNameTmp && localizedNameTmp.short) {
localizedNameTmp = localizedNameTmp.short[i18n.language] ?? localizedNameTmp.short.en ?? '';
tabName = localizedNameTmp.split('.');
finalImagePaths.push([tabName[0], realPath]);
} else {
tabName = dashedNameSplited.split('.');
finalImagePaths.push([tabName[0], realPath]);
}
finalImagePaths.push([tabName[0], realPath]);
}
}
}
Expand Down

0 comments on commit e4ad641

Please sign in to comment.