Skip to content

Commit

Permalink
refactor(Discover): add translation on extra selectable
Browse files Browse the repository at this point in the history
  • Loading branch information
tymmesyde committed Apr 12, 2023
1 parent 32a7117 commit b41cc41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/Discover/useSelectableInputs.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const mapSelectableInputs = (discover, t) => {
}
};
const extraSelects = discover.selectable.extra.map(({ name, isRequired, options }) => ({
title: `Select ${name}`,
title: translateOption(name, 'SELECT_'),
isRequired: isRequired,
options: options.map(({ value, deepLinks }) => ({
label: typeof value === 'string' ? translateOption(value) : t('NONE'),
Expand All @@ -63,7 +63,7 @@ const mapSelectableInputs = (discover, t) => {
value
})),
renderLabelText: options.some(({ selected, value }) => selected && value === null) ?
() => `Select ${name}`
() => translateOption(name, 'SELECT_')
:
null,
onSelect: (event) => {
Expand Down

0 comments on commit b41cc41

Please sign in to comment.