Skip to content

Commit

Permalink
use array instead of set
Browse files Browse the repository at this point in the history
  • Loading branch information
flovogt committed Dec 8, 2023
1 parent 421a0c9 commit 1762b2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/processors/manifestCreator.js
Original file line number Diff line number Diff line change
Expand Up @@ -562,8 +562,8 @@ async function createManifest(
supportedLocalesArray.sort();

let fallbackLocale;
if (supportedLocales.size === 1) {
fallbackLocale = [...supportedLocales][0];
if (supportedLocalesArray.length === 1) {
fallbackLocale = supportedLocalesArray[0];
}

return {
Expand Down

0 comments on commit 1762b2b

Please sign in to comment.