yearData = {
if (yearGroup == "Year 5") {
return themep.map((d) => {
return {
q: d.q,
answer: d.answer,
distractors: d.distractors,
cohort: d.year5p
};
});
} else {
return themep.map((d) => {
return {
q: d.q,
answer: d.answer,
distractors: d.distractors,
cohort: d.year7p
};
});
}
}