components/buffer-header: print bouncer network error if any

This commit is contained in:
Simon Ser 2022-06-09 15:54:29 +02:00
parent baaf576d82
commit f0c398a10c

View file

@ -44,6 +44,9 @@ export default function BufferHeader(props) {
switch (props.bouncerNetwork.state) { switch (props.bouncerNetwork.state) {
case "disconnected": case "disconnected":
description = "Bouncer disconnected from network"; description = "Bouncer disconnected from network";
if (props.bouncerNetwork.error) {
description += ": " + props.bouncerNetwork.error;
}
break; break;
case "connecting": case "connecting":
description = "Bouncer connecting to network..."; description = "Bouncer connecting to network...";