summaryrefslogtreecommitdiffstats
path: root/src/containers/settings/AccountScreen.js
diff options
context:
space:
mode:
authorLibravatar Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com>2021-06-05 16:28:45 +0530
committerLibravatar GitHub <noreply@github.com>2021-06-05 12:58:45 +0200
commitaa6689e6158efde28b68948cd8b67d55080158d2 (patch)
tree6e687fb7b5e2eb37c0027ba31d968b04632f5771 /src/containers/settings/AccountScreen.js
parentReused commonly defined method for 'apiBase' (diff)
downloadferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.tar.gz
ferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.tar.zst
ferdium-app-aa6689e6158efde28b68948cd8b67d55080158d2.zip
Removed hardcoded strings and reused constants defined in config.js (#1499)
Diffstat (limited to 'src/containers/settings/AccountScreen.js')
-rw-r--r--src/containers/settings/AccountScreen.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js
index 12c912bac..98e212192 100644
--- a/src/containers/settings/AccountScreen.js
+++ b/src/containers/settings/AccountScreen.js
@@ -10,6 +10,7 @@ import SettingsStore from '../../stores/SettingsStore';
10 10
11import AccountDashboard from '../../components/settings/account/AccountDashboard'; 11import AccountDashboard from '../../components/settings/account/AccountDashboard';
12import ErrorBoundary from '../../components/util/ErrorBoundary'; 12import ErrorBoundary from '../../components/util/ErrorBoundary';
13import { LIVE_FRANZ_API } from '../../config';
13import { WEBSITE } from '../../environment'; 14import { WEBSITE } from '../../environment';
14 15
15export default 16export default
@@ -35,7 +36,7 @@ class AccountScreen extends Component {
35 const api = stores.settings.all.app.server; 36 const api = stores.settings.all.app.server;
36 37
37 let url; 38 let url;
38 if (api === 'https://api.franzinfra.com') { 39 if (api === LIVE_FRANZ_API) {
39 url = stores.user.getAuthURL( 40 url = stores.user.getAuthURL(
40 `${WEBSITE}${route}?utm_source=app&utm_medium=account_dashboard`, 41 `${WEBSITE}${route}?utm_source=app&utm_medium=account_dashboard`,
41 ); 42 );