frontend/src/helpers/getListTitle.js
andreymal 7355204d2f Improve some translations (#581)
Reviewed-on: vikunja/frontend#581
Reviewed-by: konrad <konrad@kola-entertainments.de>
Co-authored-by: andreymal <andriyano-31@mail.ru>
Co-committed-by: andreymal <andriyano-31@mail.ru>
2021-07-09 08:22:20 +00:00

7 lines
127 B
JavaScript

export const getListTitle = (l, $t) => {
if (l.id === -1) {
return $t('list.pseudo.favorites.title');
}
return l.title;
}