Updated settings components and date filter.

This commit is contained in:
Mike Cao 2023-01-10 17:18:59 -08:00
parent 70ef857dc7
commit 4b5b4db108
16 changed files with 172 additions and 194 deletions

View file

@ -12,9 +12,9 @@ export default function useCountryNames(locale) {
const { basePath } = useRouter();
async function loadData(locale) {
const { ok, data } = await get(`${basePath}/intl/country/${locale}.json`);
const data = await get(`${basePath}/intl/country/${locale}.json`);
if (ok) {
if (data) {
countryNames[locale] = data;
setList(countryNames[locale]);
} else {