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:
parent
059673983c
commit
b5218a39e7
1 changed files with 7 additions and 5 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue