Update pkg/interface/src/apps/chat/components/lib/chat-header.js

Co-authored-by: Liam Fitzgerald <46801558+liam-fitzgerald@users.noreply.github.com>
This commit is contained in:
L 2020-08-06 12:54:00 -07:00 committed by GitHub
parent 864354546a
commit 0c0fbeda27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,11 +13,10 @@ export class ChatHeader extends Component {
const isinPopout = props.popout ? "popout/" : "";
const group = Array.from(props.group.members);
let title = props.station.substr(1);
if (props.association && "metadata" in props.association) {
title =
props.association.metadata.title !== ""
? props.association.metadata.title
: props.station.substr(1);
if (props.association &&
"metadata" in props.association &&
props.association.metadata.tile !== "") {
title = props.association.metadata.title
}
return (