Skip to content

Commit

Permalink
fix: localePercentages being undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
VampireChicken12 committed Apr 16, 2024
1 parent 4e211b5 commit 739fd50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async function getLanguageOptions() {
const response = await fetch(`${chrome.runtime.getURL("")}locales/${locale}.json`);
const localeData = await response.json();
const languageOption: SelectOption<"language"> = {
label: `${(localeData as EnUS).langName} (${localePercentages[locale]}%)`,
label: `${(localeData as EnUS).langName} (${localePercentages[locale] ?? 0}%)`,
value: locale
};
return Promise.resolve(languageOption);
Expand Down

0 comments on commit 739fd50

Please sign in to comment.