diff --git a/index.html b/index.html index cc053a1..79a39a8 100644 --- a/index.html +++ b/index.html @@ -29,7 +29,6 @@ - @@ -1789,10 +1788,12 @@ availableCategories.add(allTasks[taskId].category) const [projectCode, branch, task] = taskId.split('_') const assignedInterns = RIBC.getAssignedInterns(projectCode, branch, task); - if (filterCategory && allTasks[taskId].category !== filterCategory) continue; - if (searchQuery && searchQuery !== '' && !allTasks[taskId].title.toLowerCase().includes(searchQuery.toLowerCase())) continue; if (getObjLength(assignedInterns) >= allTasks[taskId].maxSlots) continue; if (userType && userType === 'intern' && floDapps.user.id && assignedInterns.hasOwnProperty(floDapps.user.id)) continue; + if (filterCategory && allTasks[taskId].category !== filterCategory) continue; + if (searchQuery && searchQuery !== '') { + if (!allTasks[taskId].title.toLowerCase().includes(searchQuery.toLowerCase()) && !floGlobals.taskCategories[allTasks[taskId].category].toLowerCase().includes(searchQuery.toLowerCase())) continue; + } filtered.push(render.displayTaskCard(projectCode, branch, task)) } let renderedTasks = filtered