diff options
Diffstat (limited to 'src/containers/settings/AccountScreen.js')
-rw-r--r-- | src/containers/settings/AccountScreen.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/containers/settings/AccountScreen.js b/src/containers/settings/AccountScreen.js index 66076504f..17c0613b7 100644 --- a/src/containers/settings/AccountScreen.js +++ b/src/containers/settings/AccountScreen.js | |||
@@ -26,7 +26,14 @@ export default @inject('stores', 'actions') @observer class AccountScreen extend | |||
26 | handleWebsiteLink(route) { | 26 | handleWebsiteLink(route) { |
27 | const { actions, stores } = this.props; | 27 | const { actions, stores } = this.props; |
28 | 28 | ||
29 | const url = `${WEBSITE}${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; | 29 | const api = stores.settings.all.app.server; |
30 | |||
31 | let url; | ||
32 | if (api == 'https://api.franzinfra.com') { | ||
33 | url = `${WEBSITE}${route}?authToken=${stores.user.authToken}&utm_source=app&utm_medium=account_dashboard`; | ||
34 | } else { | ||
35 | url = `${api}${route}`; | ||
36 | } | ||
30 | 37 | ||
31 | actions.app.openExternalUrl({ url }); | 38 | actions.app.openExternalUrl({ url }); |
32 | } | 39 | } |