diff --git a/js/page/help.js b/js/page/help.js index 60c70d2a6..c409758f5 100644 --- a/js/page/help.js +++ b/js/page/help.js @@ -4,6 +4,7 @@ var HelpPage = React.createClass({ getInitialState: function() { return { versionInfo: null, + lbryId: null, }; }, componentWillMount: function() { @@ -12,17 +13,20 @@ var HelpPage = React.createClass({ versionInfo: info, }); }); + lbry.getSessionInfo((info) => { + this.setState({ + lbryId: info.lbry_id, + }); + }); }, componentDidMount: function() { document.title = "Help"; }, render: function() { - let ver, osName, platform, newVerLink, lbryId; + let ver, osName, platform, newVerLink; if (this.state.versionInfo) { ver = this.state.versionInfo; - lbryId = ver.lbry_id; - if (ver.os_system == 'Darwin') { osName = (parseInt(ver.os_release.match(/^\d+/)) < 16 ? 'Mac OS X' : 'Mac OS'); @@ -84,7 +88,7 @@ var HelpPage = React.createClass({ Installation ID - {lbryId} + {this.state.lbryId}