aboutsummaryrefslogtreecommitdiffstats
path: root/src/containers/settings
diff options
context:
space:
mode:
Diffstat (limited to 'src/containers/settings')
-rw-r--r--src/containers/settings/AccountScreen.js14
-rw-r--r--src/containers/settings/SettingsWindow.js4
2 files changed, 8 insertions, 10 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js
index cc3929656..0f9457fd0 100644
--- a/src/containers/settings/AccountScreen.js
+++ b/src/containers/settings/AccountScreen.js
@@ -32,14 +32,12 @@ class AccountScreen extends Component {
32 32
33 const api = stores.settings.all.app.server; 33 const api = stores.settings.all.app.server;
34 34
35 let url; 35 const url =
36 if (api === LIVE_FRANZ_API) { 36 api === LIVE_FRANZ_API
37 url = stores.user.getAuthURL( 37 ? stores.user.getAuthURL(
38 `${WEBSITE}${route}?utm_source=app&utm_medium=account_dashboard`, 38 `${WEBSITE}${route}?utm_source=app&utm_medium=account_dashboard`,
39 ); 39 )
40 } else { 40 : `${api}${route}`;
41 url = `${api}${route}`;
42 }
43 41
44 actions.app.openExternalUrl({ url }); 42 actions.app.openExternalUrl({ url });
45 } 43 }
diff --git a/src/containers/settings/SettingsWindow.js b/src/containers/settings/SettingsWindow.js
index 58e73f2f3..e03c4c1d2 100644
--- a/src/containers/settings/SettingsWindow.js
+++ b/src/containers/settings/SettingsWindow.js
@@ -19,11 +19,11 @@ class SettingsContainer extends Component {
19 el = document.createElement('div'); 19 el = document.createElement('div');
20 20
21 componentDidMount() { 21 componentDidMount() {
22 this.portalRoot.appendChild(this.el); 22 this.portalRoot.append(this.el);
23 } 23 }
24 24
25 componentWillUnmount() { 25 componentWillUnmount() {
26 this.portalRoot.removeChild(this.el); 26 this.el.remove();
27 } 27 }
28 28
29 render() { 29 render() {