Skip to content

Commit 0540103

Browse files
authored
Merge pull request #850 from Ablahgad/dev
FAQ search changed to search for term in answers too
2 parents 678b34f + 892e2b2 commit 0540103

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

client/src/pages/FAQ/FAQ.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ const FAQPageHeader = ({
213213
return questions;
214214
}
215215
return questions.filter((question) => {
216-
const questionName = question.question.toLowerCase();
216+
const questionName = question.question.toLowerCase() + question.answer.toLowerCase();
217217
return questionName.includes(query.toLowerCase());
218218
});
219219
};

0 commit comments

Comments
 (0)