From 9d209fbd16a8c945c243f00b1ec2ef312ecddf06 Mon Sep 17 00:00:00 2001 From: Vadym Pavlyk Date: Wed, 13 Nov 2024 12:41:46 +0200 Subject: [PATCH] Removed unnecessary non-null assertion --- .../proficiency-level-select/ProficiencyLevelSelect.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/containers/proficiency-level-select/ProficiencyLevelSelect.tsx b/src/containers/proficiency-level-select/ProficiencyLevelSelect.tsx index 38549ac98..738cb5cfb 100644 --- a/src/containers/proficiency-level-select/ProficiencyLevelSelect.tsx +++ b/src/containers/proficiency-level-select/ProficiencyLevelSelect.tsx @@ -60,7 +60,9 @@ const ProficiencyLevelSelect: FC = ({ > -1} /> )) @@ -75,7 +77,7 @@ const ProficiencyLevelSelect: FC = ({ const renderSelectedValue = (selected: ProficiencyLevelEnum[]) => { const translatedValues = selected.map((level) => - labels?.has(level) ? t(labels.get(level)!) : t(level) + labels?.has(level) ? t(labels.get(level) || '') : t(level) ) return fillRange && selected.length > 1