Skip to content

Commit

Permalink
fix(eslint-plugin-i18n): fix eslint rule crash when i18nKey was diffe…
Browse files Browse the repository at this point in the history
…rent from a string (#120)

Co-authored-by: Martin SCHNEIDER <[email protected]>
  • Loading branch information
martinschneider01 and Martin SCHNEIDER authored May 5, 2022
1 parent ce65b35 commit cee2f45
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = {

const { i18nKey, number, data } = filteredAttributes;

if (!i18nKey) {
if (!i18nKey || typeof i18nKey !== 'string') {
return;
}

Expand Down

0 comments on commit cee2f45

Please sign in to comment.