Skip to content

Commit ca3a424

Browse files
committed
operator precedence
1 parent b54e4ca commit ca3a424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Dashboard/ModuleLink.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const ModuleLink = ({ link }: { link: ModuleLinkInfo }): JSX.Element => {
203203
py: link.pyOc,
204204
showAll: maxLangOc,
205205
};
206-
const isMissingLang = langToOc[userLang]! < maxLangOc;
206+
const isMissingLang = (langToOc[userLang] ?? 0) < maxLangOc;
207207
return (
208208
<LinkWithProgress
209209
lineColorStyle={lineColorStyle}

0 commit comments

Comments
 (0)