Skip to content

Commit 69eb1bc

Browse files
authored
Merge pull request #1667 from SeedCompany/fix-#1018-bug
Fix potential bug in project visibility for languages
2 parents e44e2ef + 7eb9a54 commit 69eb1bc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/scenes/Languages/Detail/LanguageDetail.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -301,15 +301,15 @@ export const LanguageDetail = () => {
301301
className={classes.listItem}
302302
/>
303303
))}
304-
{projects?.items.length === 0 ? (
305-
<Typography color="textSecondary">
306-
This language is not engaged in any projects
307-
</Typography>
308-
) : projects?.canRead === false ? (
304+
{projects?.canRead === false ? (
309305
<Typography color="textSecondary">
310306
You don't have permission to see the projects this language is
311307
engaged in
312308
</Typography>
309+
) : projects?.items.length === 0 ? (
310+
<Typography color="textSecondary">
311+
This language is not engaged in any projects
312+
</Typography>
313313
) : null}
314314
</Grid>
315315
<Grid item xs={12}>

0 commit comments

Comments
 (0)