parent
268b1b1d98
commit
92b89cc4d8
@ -12,8 +12,14 @@
|
|||||||
export let modal_open;
|
export let modal_open;
|
||||||
export let current_cards;
|
export let current_cards;
|
||||||
|
|
||||||
const getRunnerLabel = (option) =>
|
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) =>
|
const filterRunners = (label, filterText, option) =>
|
||||||
label.toLowerCase().includes(filterText.toLowerCase()) ||
|
label.toLowerCase().includes(filterText.toLowerCase()) ||
|
||||||
option.value.toString().startsWith(filterText.toLowerCase());
|
option.value.toString().startsWith(filterText.toLowerCase());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user