Merge pull request #207 from filipnyquist/fillerino-ver-fix

Fixed the local version in help
This commit is contained in:
Jeremy Kauffman 2017-06-07 11:05:01 -04:00 committed by GitHub
commit 3c58678f62

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,