Small fixes
This commit is contained in:
@@ -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
|
||||
|
@@ -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 =>
|
||||
|
Reference in New Issue
Block a user