diff --git a/src/js/Content/Features/Store/Licenses/FLicensesSummary.svelte b/src/js/Content/Features/Store/Licenses/FLicensesSummary.svelte index 665d16f25..018748c40 100644 --- a/src/js/Content/Features/Store/Licenses/FLicensesSummary.svelte +++ b/src/js/Content/Features/Store/Licenses/FLicensesSummary.svelte @@ -27,11 +27,11 @@ const types = {}; for (const item of document.querySelectorAll(".account_table tr")) { - const dateStr = item.querySelector(".license_date_col")?.textContent.trim(); - const type = item.querySelector(".license_acquisition_col")?.textContent.trim(); - if (!dateStr || !type) { continue; } + const dateStr = item.querySelector("td.license_date_col")?.textContent.trim(); + if (!dateStr) { continue; } - const year = /\d{4}/.exec(dateStr)?.[0] ?? ""; + const year = /\d{4}/.exec(dateStr)?.[0] ?? Localization.str.thewordunknown; + const type = item.querySelector("td.license_acquisition_col")?.textContent.trim() || Localization.str.thewordunknown; (list[year] ??= {})[type] = (list[year][type] ?? 0) + 1; types[type] = (types[type] ?? 0) + 1; @@ -105,6 +105,7 @@ font-size: 22px; font-family: "Motiva Sans", Sans-serif; font-weight: normal; + text-transform: uppercase; } button { vertical-align: text-bottom; diff --git a/src/localization/en.json b/src/localization/en.json index 11da5ae65..25c614a2f 100644 --- a/src/localization/en.json +++ b/src/localization/en.json @@ -19,6 +19,7 @@ "toomanyrequests": "Too Many Requests", "show_comments": "Show Comments", "hide_comments": "Hide Comments", + "thewordunknown": "Unknown", "calc_workshop_size": { "file_size": "File size __size__", "calc_size": "Calculate Total Size",