bugfix/162-create_card_modal #163

Merged
philipp merged 4 commits from bugfix/162-create_card_modal into dev 2023-03-15 12:15:24 +00:00
Showing only changes of commit 92b89cc4d8 - Show all commits

View File

@ -12,8 +12,14 @@
export let modal_open;
export let current_cards;
const getRunnerLabel = (option) =>
option.firstname + " " + (option.middlename || "") + " " + option.lastname;
const getRunnerLabel = (option) =>
{
if(option.middlename){
return option.firstname + " " + option.middlename + " " + option.lastname;
}
return option.firstname + " " + option.lastname;
}
const filterRunners = (label, filterText, option) =>
label.toLowerCase().includes(filterText.toLowerCase()) ||
option.value.toString().startsWith(filterText.toLowerCase());