diff --git a/src/App.js b/src/App.js index 03b807b..8fa2649 100644 --- a/src/App.js +++ b/src/App.js @@ -135,8 +135,9 @@ class App extends IPCContainer { installUpgrade = result => { if (result.Success) { - const sha256 = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]].sha256; - const signature = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]].sig; + const info = this.props.LocationsLookup[this.props.AppPlatform][this.props.VersionLookup[this.props.AppPlatform][0]]; + const sha256 = info.sha256; + const signature = info.sig; this.props.installUpgrade(result.Destination, sha256, signature, !!result.SkipVerification, this.onInstallUpgradeComplete); } };