1
0
Fork 0

fix(shared): Deal with list option inputs

This commit is contained in:
joostdecock 2023-05-18 14:06:22 +02:00
parent fc3559a124
commit e986ec33e9
3 changed files with 13 additions and 26 deletions

View file

@ -35,7 +35,7 @@ export const CountOptionValue = ({ name, config, current }) =>
)
export const ListOptionValue = ({ name, config, current, t }) => {
const translate = config.doNotTranslate ? (input) => input : (input) => t(`${option}.o.${input}`)
const translate = config.doNotTranslate ? (input) => input : (input) => t(`${name}.o.${input}`)
return config.dflt == current || typeof current === 'undefined' ? (
<span className="text-secondary-focus">{translate(config.dflt)}</span>