Fixed double space in label

ref #162
This commit is contained in:
Nicolai Ort 2023-03-15 13:09:07 +01:00
parent 268b1b1d98
commit 92b89cc4d8
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -13,7 +13,13 @@
export let current_cards;
const getRunnerLabel = (option) =>
option.firstname + " " + (option.middlename || "") + " " + option.lastname;
{
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());