Small fixes

This commit is contained in:
2022-05-05 20:26:56 +00:00
parent 67adbd277c
commit 500c5a42e1
4 changed files with 6 additions and 11 deletions

View File

@@ -139,7 +139,7 @@ function NewClassTableCourse(props) {
{user &&
<div className='interest'>
{user.interests.includes(course.id) ?
{user.interests.filter(x => !x.satisfied_by).map(x => x.course).includes(course.id) ?
'Interested ✅'
:
<Button

View File

@@ -111,7 +111,9 @@ export function Courses(props) {
<Link to={'/courses/'+x.id}>{x.name}</Link>
</Table.Cell>
<Table.Cell>
{x.num_interested}
{!!x.num_interested &&
<>{x.num_interested} member{x.num_interested !== 1 && 's'}</>
}
</Table.Cell>
<Table.Cell>
{!!x.tags && x.tags.split(',').map(name =>