From edc988a4b99bfe5707c88a68e27eed7e1bcbd6b8 Mon Sep 17 00:00:00 2001 From: Vadym Pavlyk Date: Thu, 14 Nov 2024 15:43:46 +0200 Subject: [PATCH] Removed unnecessary non-null assertion (#2689) --- .../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