fix(DonationCreate): remove duplicate spaces from getRunnerLabel
This commit is contained in:
parent
ca066aa7a7
commit
30a26ef3ed
@ -52,8 +52,9 @@
|
|||||||
}
|
}
|
||||||
loadDonors();
|
loadDonors();
|
||||||
|
|
||||||
const getRunnerLabel = (option) =>
|
const getRunnerLabel = (option) => {
|
||||||
option.firstname + " " + (option.middlename || "") + " " + option.lastname+" [#"+option.id+"]";
|
return [option.firstname,option.middlename,option.lastname].join(" ").replace(" "," ") + " [#"+option.id+"]";
|
||||||
|
}
|
||||||
|
|
||||||
const filterRunners = (label, filterText, option) => {
|
const filterRunners = (label, filterText, option) => {
|
||||||
if (filterText.startsWith("#")) {
|
if (filterText.startsWith("#")) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user