From 3aec6ad87641ae7b2aa7ec7215d3fa8140753197 Mon Sep 17 00:00:00 2001 From: Rostik Kayko <119863957+rostislav-deriv@users.noreply.github.com> Date: Wed, 19 Jun 2024 13:40:56 +0300 Subject: [PATCH] refactor: the migration banner condition (#15348) --- packages/appstore/src/components/main-title-bar/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/appstore/src/components/main-title-bar/index.tsx b/packages/appstore/src/components/main-title-bar/index.tsx index c8cbe724aa03..9a4cc41ea68a 100644 --- a/packages/appstore/src/components/main-title-bar/index.tsx +++ b/packages/appstore/src/components/main-title-bar/index.tsx @@ -27,7 +27,11 @@ const MainTitleBar = () => { const is_low_risk_cr_real_account = content_flag === ContentFlag.LOW_RISK_CR_NON_EU || content_flag === ContentFlag.LOW_RISK_CR_EU; - const show_wallets_banner = wallet_migration_state && wallet_migration_state !== 'ineligible'; + const show_wallets_banner = + wallet_migration_state === 'eligible' || + wallet_migration_state === 'in_progress' || + wallet_migration_state === 'migrated' || + wallet_migration_state === 'failed'; const [active_index, setActiveIndex] = React.useState(0); React.useEffect(() => {