From b5218a39e7a9fee720dc5107a6e620d8c4f49ffd Mon Sep 17 00:00:00 2001 From: Fillerino Date: Wed, 7 Jun 2017 16:51:50 +0200 Subject: [PATCH] Fixed the local version in help This commit fixes the version in the help page. Before it displayed the last remote version, now it displays the "localVersion". --- ui/js/page/help/view.jsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ui/js/page/help/view.jsx b/ui/js/page/help/view.jsx index 7fd1356b6..00fc2710a 100644 --- a/ui/js/page/help/view.jsx +++ b/ui/js/page/help/view.jsx @@ -18,12 +18,14 @@ class HelpPage extends React.Component { } componentWillMount() { - lbry.getAppVersionInfo().then(({ remoteVersion, upgradeAvailable }) => { - this.setState({ - uiVersion: remoteVersion, - upgradeAvailable: upgradeAvailable, + lbry + .getAppVersionInfo() + .then(({ remoteVersion, localVersion, upgradeAvailable }) => { + this.setState({ + uiVersion: localVersion, + upgradeAvailable: upgradeAvailable, + }); }); - }); lbry.call("version", {}, info => { this.setState({ versionInfo: info,