Skip to content

Commit

Permalink
fix function that renders language in the downloads table (#5172)
Browse files Browse the repository at this point in the history
  • Loading branch information
magicznyleszek authored Oct 16, 2024
1 parent 941b886 commit 3ba0bad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export default class ProjectExportsList extends React.Component {
// doesn't exist in current form version
let languageDisplay = (<em>{t('Unknown')}</em>);
const langIndex = getLanguageIndex(this.props.asset, exportLang);
if (langIndex !== null) {
if (langIndex !== -1) {
languageDisplay = exportLang;
} else if (EXPORT_FORMATS[exportLang]) {
languageDisplay = EXPORT_FORMATS[exportLang].label;
Expand Down

0 comments on commit 3ba0bad

Please sign in to comment.