Fix OG image, CBT filters, syllabus split, and trial duration
This commit is contained in:
@@ -68,7 +68,9 @@ export default function CBTPage() {
|
||||
if (testRes.ok) {
|
||||
let testsData = await testRes.json();
|
||||
if (selectedPattern === "JEE") {
|
||||
testsData = testsData.filter((t: any) => t.exam_pattern === "JEE_Main" || t.exam_pattern === "JEE_Advanced");
|
||||
testsData = testsData.filter((t: any) => t.exam_pattern?.includes("JEE"));
|
||||
} else if (selectedPattern === "NEET") {
|
||||
testsData = testsData.filter((t: any) => t.exam_pattern === "NEET");
|
||||
}
|
||||
setExams(testsData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user