From d625a7b3dc642691d4ee4da05bdda3272204eaa7 Mon Sep 17 00:00:00 2001 From: schroda <50052685+schroda@users.noreply.github.com> Date: Mon, 22 Sep 2025 23:58:49 +0200 Subject: [PATCH] Fix incorrect truthy check for conditional rendering in SourceLanguageSelect Ensure proper validation for `sourcesOfLanguage` to prevent potential rendering issues. --- src/features/source/components/SourceLanguageSelect.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/features/source/components/SourceLanguageSelect.tsx b/src/features/source/components/SourceLanguageSelect.tsx index 3f223701..24e230a7 100644 --- a/src/features/source/components/SourceLanguageSelect.tsx +++ b/src/features/source/components/SourceLanguageSelect.tsx @@ -132,7 +132,7 @@ export const SourceLanguageSelect = ({ onChange={(e) => handleChange(language, e.target.checked)} /> - {isEnabled && sourcesOfLanguage.length && ( + {isEnabled && !!sourcesOfLanguage.length && ( {sourcesOfLanguage.map((source) => (