diff --git a/index.html b/index.html index e1d9bae..aaa20df 100644 --- a/index.html +++ b/index.html @@ -1334,7 +1334,6 @@ switch (pageId) { case 'sign_in': getRef('private_key_field').focusIn() - break; } } @@ -1690,6 +1689,8 @@ if (filterCategory && allTasks[taskId].category !== filterCategory) continue; if (RIBC.getTaskStatus(projectCode, branch, task) !== 'incomplete') continue; if (searchQuery && searchQuery !== '' && !allTasks[taskId].title.toLowerCase().includes(searchQuery.toLowerCase())) continue; + if (RIBC.getAssignedInterns(projectCode, branch, task).length >= allTasks[taskId].maxSlots) continue; + if (typeOfUser && typeOfUser === 'intern' && floDapps.user.id && RIBC.getAssignedInterns(projectCode, branch, task).includes(floDapps.user.id)) continue; filtered.push(render.displayTaskCard(projectCode, branch, task)) availableCategories.add(allTasks[taskId].category) } @@ -1713,16 +1714,18 @@
Nothing to see here