Skip to content

Commit

Permalink
fix: normal form check
Browse files Browse the repository at this point in the history
  • Loading branch information
TurtIeSocks committed Feb 21, 2024
1 parent c8c42e8 commit 47e358b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/useTranslateById.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ import { useTranslation } from 'react-i18next'
*/
export function useTranslateById(options = {}) {
const i18n = useTranslation()
const formsToIgnore = useRef(new Set([i18n.t('form_0'), i18n.t('form_29')]))
const formsToIgnore = useRef(new Set([i18n.t('form_0'), i18n.t('form_45')]))

useEffect(() => {
formsToIgnore.current = new Set([i18n.t('form_0'), i18n.t('form_29')])
formsToIgnore.current = new Set([i18n.t('form_0'), i18n.t('form_45')])
}, [i18n.i18n.language])

return useMemo(
Expand Down

0 comments on commit 47e358b

Please sign in to comment.