Skip to content

Commit

Permalink
additional fieds
Browse files Browse the repository at this point in the history
  • Loading branch information
Przemek committed Jul 10, 2024
1 parent 1667201 commit 304cdf9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useAdditionalFieldsTranslations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const useAdditionalField = () => {

const additionalFieldTranslations = useCallback(
(fieldMeta: API.Metadata) => {
// @ts-ignore

Check warning on line 10 in src/hooks/useAdditionalFieldsTranslations.tsx

View workflow job for this annotation

GitHub Actions / eslint (20.x)

Do not use "@ts-ignore" because it alters compilation errors
const translations = fieldMeta?.extra?.[0]?.translations;
if (translations && typeof translations === "object") {
return translations[i18n.language];
Expand Down

0 comments on commit 304cdf9

Please sign in to comment.