This commit is contained in:
Akbar Rahman 2022-02-04 23:02:11 +00:00
parent 8b2695f241
commit b2f37589ec
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

View File

@ -47,13 +47,13 @@ const getMasterQuestionList = () => {
}; };
const getQuestionByCountryName = (name) => { const getQuestionByCountryName = (name) => {
c = getMasterQuestionList().filter((c) => c.countryname === name); var c = getMasterQuestionList().filter((c) => c.countryname === name);
if (c.length > 0) return c[0]; if (c.length > 0) return c[0];
return null; return null;
}; };
const getQuestionByCapital = (capital) => { const getQuestionByCapital = (capital) => {
c = getMasterQuestionList().filter((c) => c.capital === capital); var c = getMasterQuestionList().filter((c) => c.capital === capital);
if (c.length > 0) return c[0]; if (c.length > 0) return c[0];
return null; return null;
}; };