diff --git a/packages/xo-web/src/xo-app/proxies/deploy-proxy.js b/packages/xo-web/src/xo-app/proxies/deploy-proxy.js index 597e4e41e..287b8774f 100644 --- a/packages/xo-web/src/xo-app/proxies/deploy-proxy.js +++ b/packages/xo-web/src/xo-app/proxies/deploy-proxy.js @@ -1,7 +1,6 @@ import _, { messages } from 'intl' import decorate from 'apply-decorators' import Icon from 'icon' -import noop from 'lodash/noop' import React from 'react' import SingleLineRow from 'single-line-row' import Tooltip from 'tooltip' @@ -249,8 +248,8 @@ const deployProxy = async ({ proxy } = {}) => { const title = isRedeployMode ? _('redeployProxy') : _('deployProxy') if (license === undefined) { - const value = 'trial' - const choice = await chooseAction({ + // it rejects with undefined when the start trial option isn't chosen + await chooseAction({ body: (
{_('noLicenseAvailable')} @@ -261,15 +260,11 @@ const deployProxy = async ({ proxy } = {}) => { btnStyle: 'success', icon: 'trial', label: _('trialStartButton'), - value, }, ], icon: 'proxy', title, - }).catch(noop) - if (choice !== value) { - return - } + }) try { license = await createProxyTrialLicense()