Skip to content

Commit

Permalink
DTRA / Kate / DTRA-905 / Binary.com reference is still showing in for…
Browse files Browse the repository at this point in the history
…ward starting contract modal (#13584)

* fix: remove old naming

* chore: empty commit

* fix: remove old url

* refactor: remove blank
  • Loading branch information
kate-deriv authored Feb 19, 2024
1 parent 9870a0c commit 9dc8090
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@ describe('UnsupportedContractModal', () => {
});

expect(screen.getByText(/Youve selected a trade type that is currently unsupported/i)).toBeInTheDocument();
expect(screen.getByText(/Go to Deriv.com/i)).toBeInTheDocument();
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const UnsupportedContractModal = observer(
<Dialog
title={localize('We’re working on it')}
confirm_button_text={localize('Stay on {{website_domain}}', { website_domain: website_name })}
cancel_button_text={localize('Go to Binary.com')}
cancel_button_text={localize('Go to Deriv.com')}
onConfirm={onConfirm}
onCancel={onClose}
disableApp={disableApp}
Expand Down
5 changes: 2 additions & 3 deletions packages/trader/src/App/Containers/Modals/trade-modals.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import { getUrlSmartTrader, urlFor } from '@deriv/shared';
import { getUrlSmartTrader, getStaticUrl } from '@deriv/shared';
import UnsupportedContractModal from 'App/Components/Elements/Modals/UnsupportedContractModal';
import MarketUnavailableModal from 'App/Components/Elements/Modals/MarketUnavailableModal';
import ServicesErrorModal from 'App/Components/Elements/Modals/ServicesErrorModal';
Expand Down Expand Up @@ -48,8 +48,7 @@ const TradeModals = observer(() => {
};

const unsupportedContractOnClose = () => {
const portfoliows_url = urlFor('user/portfoliows', { legacy: true });
window.open(portfoliows_url, '_blank');
window.open(getStaticUrl('/'));
unsupportedContractOnConfirm();
};

Expand Down

0 comments on commit 9dc8090

Please sign in to comment.