fix(Discover): use correct translation func

This commit is contained in:
Botzy 2025-05-28 16:30:04 +03:00
parent 4f9cd61286
commit d27f92fb01

View file

@ -46,10 +46,10 @@ const mapSelectableInputs = (discover, t) => {
}
};
const extraSelects = discover.selectable.extra.map(({ name, isRequired, options }) => ({
title: t(name),
title: t.string(name),
isRequired: isRequired,
options: options.map(({ value, deepLinks }) => ({
label: typeof value === 'string' ? t(value) : t.string('NONE'),
label: typeof value === 'string' ? t.string(value) : t.string('NONE'),
value: JSON.stringify({
href: deepLinks.discover,
value