From d2e5269e8bfbcee32734c08605324cac92ab90e3 Mon Sep 17 00:00:00 2001 From: Veilza Date: Thu, 8 Aug 2024 04:44:42 -0500 Subject: [PATCH] Linting part 2 --- system/api/generate-localization.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/system/api/generate-localization.js b/system/api/generate-localization.js index a0c02bd6..d8100dd7 100644 --- a/system/api/generate-localization.js +++ b/system/api/generate-localization.js @@ -45,9 +45,8 @@ export const generateLocalizedLabel = (string, type) => { if (type === 'edges') { const edges = WOD5E.Edges.getList() return findLabel(edges, string) - } else + } else { // Return the base localization if nothing else is found - { const otherLocalizationString = string.capitalize() return game.i18n.localize(`WOD5E.${otherLocalizationString}`) } @@ -63,4 +62,4 @@ export const generateLocalizedLabel = (string, type) => { // Return nothing return '' } -} \ No newline at end of file +}