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".
This commit is contained in:
Fillerino 2017-06-07 16:51:50 +02:00
parent 059673983c
commit b5218a39e7

View file

@ -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,