summaryrefslogtreecommitdiffhomepage
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/containers/SettingsPage.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/containers/SettingsPage.js b/app/containers/SettingsPage.js
index 84977bab65..7c844252d3 100644
--- a/app/containers/SettingsPage.js
+++ b/app/containers/SettingsPage.js
@@ -3,7 +3,7 @@
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { push } from 'react-router-redux';
-import { remote } from 'electron';
+import { version } from '../../package.json';
import Settings from '../components/Settings';
import { links } from '../config';
import { openLink, exit } from '../lib/platform';
@@ -14,7 +14,7 @@ import type { SharedRouteProps } from '../routes';
const mapStateToProps = (state: ReduxState) => {
return {
...state,
- version: remote.app.getVersion(),
+ version: version,
};
};
const mapDispatchToProps = (dispatch: ReduxDispatch, _props: SharedRouteProps) => {