diff --git a/src/hooks/I18n.js b/src/hooks/I18n.js index d4e7684..a29ecf6 100644 --- a/src/hooks/I18n.js +++ b/src/hooks/I18n.js @@ -15,5 +15,5 @@ export const useI18nMd = (key) => { const i18n = useI18n(); const fileName = i18n(key); const url = `${URL_RAW_PREFIX}/${fileName}`; - return useFetch(url); + return useFetch(fileName ? url : ""); };