Don't show installed if nothing is installed

This commit is contained in:
Aria Moradi 2021-03-14 14:09:31 +03:30
parent 472bfec6bf
commit b8df0e89e5

View File

@ -76,7 +76,7 @@ export default function Extensions() {
<> <>
{ {
Object.entries(extensions).map(([lang, list]) => ( Object.entries(extensions).map(([lang, list]) => (
(['installed', ...shownLangs].indexOf(lang) !== -1 ((['installed', ...shownLangs].indexOf(lang) !== -1 && (list as []).length > 0)
&& ( && (
<React.Fragment key={lang}> <React.Fragment key={lang}>
<h1 key={lang} style={{ marginLeft: 25 }}> <h1 key={lang} style={{ marginLeft: 25 }}>