Skip to content

Commit

Permalink
adjust the check
Browse files Browse the repository at this point in the history
  • Loading branch information
FAMarfuaty committed Sep 28, 2023
1 parent 63e069a commit 242b0cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const configs = {
const pluginName = "YoastSEOPremium";

export default function( worker, language ) {
if ( getLanguagesWithWordComplexity( language ) ) {
if ( getLanguagesWithWordComplexity().includes( language ) ) {
// Get the word complexity config for the specific language.
const wordComplexityConfig = configs[ language ];
// Get the word complexity helper for the specific language.
Expand Down

0 comments on commit 242b0cb

Please sign in to comment.