From d2c5b7945b8b745e06784a28513618f3db2cfba0 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 21 Feb 2024 09:50:11 -0800 Subject: [PATCH] Remove CEX withdraw testflag (#316) --- src/lib/testFlags.ts | 4 ---- .../forms/AccountManagementForms/SourceSelectMenu.tsx | 11 +++++------ 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/src/lib/testFlags.ts b/src/lib/testFlags.ts index 74a8cd9..c9cd939 100644 --- a/src/lib/testFlags.ts +++ b/src/lib/testFlags.ts @@ -26,10 +26,6 @@ class TestFlags { get showTradingRewards() { return !!this.queryParams.tradingrewards; } - - get showCexWithdrawal() { - return !!this.queryParams.cexwithdrawal; - } } export const testFlags = new TestFlags(); diff --git a/src/views/forms/AccountManagementForms/SourceSelectMenu.tsx b/src/views/forms/AccountManagementForms/SourceSelectMenu.tsx index a119438..65b911a 100644 --- a/src/views/forms/AccountManagementForms/SourceSelectMenu.tsx +++ b/src/views/forms/AccountManagementForms/SourceSelectMenu.tsx @@ -63,12 +63,11 @@ export const SourceSelectMenu = ({ return ( 0 && - (testFlags.showCexWithdrawal || type === TransferType.deposit) && { - group: 'exchanges', - groupLabel: stringGetter({ key: STRING_KEYS.EXCHANGES }), - items: exchangeItems, - }, + exchangeItems.length > 0 && { + group: 'exchanges', + groupLabel: stringGetter({ key: STRING_KEYS.EXCHANGES }), + items: exchangeItems, + }, chainItems.length > 0 && { group: 'chains', groupLabel: stringGetter({ key: STRING_KEYS.CHAINS }),