Fixed the formatting in the Waiting.jsx
This commit is contained in:
parent
481b1bed61
commit
dd07d19501
@ -56,7 +56,11 @@ export const Waiting = ({setState}) => {
|
|||||||
|
|
||||||
let last = names.pop();
|
let last = names.pop();
|
||||||
|
|
||||||
return <><span>{names.join(", ")}</span> und <span>{last}</span></>;
|
return <>{names.map((name, index) => {
|
||||||
|
if (index === names.length - 1) return <span>{name}</span>;
|
||||||
|
|
||||||
|
return <><span>{name}</span>, </>;
|
||||||
|
})} und <span>{last}</span></>;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user