diff --git a/faq/index.html b/faq/index.html index 0090ac7..acd2197 100644 --- a/faq/index.html +++ b/faq/index.html @@ -132,7 +132,8 @@ function normalize(payload) { // Optional per-language variants: Question_en / Answer_es / area_en … function pick(it, field) { - const key = Object.keys(it).find(k => k.toLowerCase() === (field + '_' + state.lang)); + const want = (field + '_' + state.lang).toLowerCase(); + const key = Object.keys(it).find(k => k.toLowerCase() === want); if (key && it[key]) return it[key]; return it[field] ?? ''; }