diff --git a/pkg/interface/launch/src/js/components/home.js b/pkg/interface/launch/src/js/components/home.js index 5dde39429..4f462b9a1 100644 --- a/pkg/interface/launch/src/js/components/home.js +++ b/pkg/interface/launch/src/js/components/home.js @@ -17,9 +17,15 @@ export default class Home extends Component { render() { let keys = [...this.props.keys]; let tileElems = keys.map((tile) => { - return ( - - ); + let tileData = {}; + if (tile in this.props.data && tile !== "invite-initial") { + tileData = this.props.data[tile] !== null + ? this.props.data[tile] : {}; + + tileData["invites"] = ("invite-initial" in this.props.data) + ? this.props.data["invite-initial"] : {}; + } + return ; }); return ( diff --git a/pkg/interface/launch/src/js/subscription.js b/pkg/interface/launch/src/js/subscription.js index e7bdc1274..b4075c3e6 100644 --- a/pkg/interface/launch/src/js/subscription.js +++ b/pkg/interface/launch/src/js/subscription.js @@ -26,7 +26,11 @@ export class Subscription { this.handleEvent.bind(this), this.handleError.bind(this), ship); - } + api.bind("invite-view", '/primary', + this.handleEvent.bind(this), + this.handleError.bind(this), + ship); + } handleEvent(diff) { store.handleEvent(diff);