We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b54e4ca commit ca3a424Copy full SHA for ca3a424
src/components/Dashboard/ModuleLink.tsx
@@ -203,7 +203,7 @@ const ModuleLink = ({ link }: { link: ModuleLinkInfo }): JSX.Element => {
203
py: link.pyOc,
204
showAll: maxLangOc,
205
};
206
- const isMissingLang = langToOc[userLang]! < maxLangOc;
+ const isMissingLang = (langToOc[userLang] ?? 0) < maxLangOc;
207
return (
208
<LinkWithProgress
209
lineColorStyle={lineColorStyle}
0 commit comments