Skip to content

Commit

Permalink
refactor: the migration banner condition (deriv-com#15348)
Browse files Browse the repository at this point in the history
  • Loading branch information
rostislav-deriv authored Jun 19, 2024
1 parent 5e3f51f commit 3aec6ad
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/appstore/src/components/main-title-bar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit 3aec6ad

Please sign in to comment.