Skip to content

Commit

Permalink
[Wallets] Thisyahlen/wall 2340/dont show cashier when next wallet is …
Browse files Browse the repository at this point in the history
…enabled (deriv-com#10984)

* chore: update proper type and cleanup

* chore: cleanup

* chore: add more proper types

* chore: dont_show_cashier_when_next_wallet_is_enabled
  • Loading branch information
thisyahlen-deriv authored Nov 10, 2023
1 parent 62deb65 commit 9d02147
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ const ToggleMenuDrawer = observer(({ platform_config }) => {
];
} else if (location === routes.traders_hub || is_trading_hub_category) {
primary_routes = [routes.account, routes.cashier];
} else if (location === routes.wallets) {
} else if (location === routes.wallets || is_next_wallet_enabled) {
primary_routes = [routes.reports, routes.account];
} else {
primary_routes = [routes.reports, routes.account, routes.cashier];
Expand All @@ -96,7 +96,7 @@ const ToggleMenuDrawer = observer(({ platform_config }) => {
}

return () => clearTimeout(timeout);
}, [is_appstore, account_status, should_allow_authentication, is_trading_hub_category]);
}, [is_appstore, account_status, should_allow_authentication, is_trading_hub_category, is_next_wallet_enabled]);

const toggleDrawer = React.useCallback(() => {
if (is_mobile_language_menu_open) setMobileLanguageMenuOpen(false);
Expand Down

0 comments on commit 9d02147

Please sign in to comment.