Get version from manifest instead of hard coding in New UI info page.

feature/default_network_editable
Dan 7 years ago committed by Chi Kei Chan
parent 4e63924e60
commit c554e52e82
  1. 4
      ui/app/settings.js

@ -333,6 +333,8 @@ class Settings extends Component {
} }
renderInfoContent () { renderInfoContent () {
const version = global.platform.getVersion()
return ( return (
h('div.settings__content', [ h('div.settings__content', [
h('div.settings__content-row', [ h('div.settings__content-row', [
@ -340,7 +342,7 @@ class Settings extends Component {
this.renderLogo(), this.renderLogo(),
h('div.settings__info-item', [ h('div.settings__info-item', [
h('div.settings__info-version-header', 'MetaMask Version'), h('div.settings__info-version-header', 'MetaMask Version'),
h('div.settings__info-version-number', '4.0.0'), h('div.settings__info-version-number', version),
]), ]),
h('div.settings__info-item', [ h('div.settings__info-item', [
h( h(

Loading…
Cancel
Save