From a9cb7980880c471675ab586b2e82b26bcbff7ba3 Mon Sep 17 00:00:00 2001 From: George Usynin <103181646+heorhi-deriv@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:58:31 +0300 Subject: [PATCH] fix(cashier): :ambulance: fix header for tablet view (#16903) --- packages/cashier/src/containers/cashier/cashier.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cashier/src/containers/cashier/cashier.tsx b/packages/cashier/src/containers/cashier/cashier.tsx index bc58b1adb8f8..1110f4905451 100644 --- a/packages/cashier/src/containers/cashier/cashier.tsx +++ b/packages/cashier/src/containers/cashier/cashier.tsx @@ -62,7 +62,7 @@ const Cashier = observer(({ history, location, routes: routes_config }: TCashier isSuccess: is_payment_agent_transfer_visible_is_success, } = usePaymentAgentTransferVisible(); const { current_language, is_from_derivgo } = common; - const { is_cashier_visible: is_visible, is_mobile, toggleCashier, toggleReadyToDepositModal } = ui; + const { is_cashier_visible: is_visible, toggleCashier, toggleReadyToDepositModal } = ui; const { account_settings, currency, is_account_setting_loaded, is_logged_in, is_logging_in, is_svg, is_virtual } = client; const { @@ -127,7 +127,7 @@ const Cashier = observer(({ history, location, routes: routes_config }: TCashier const is_default_route = !!selected_route.default; const getHeaderTitle = () => { - if (!is_mobile || (is_default_route && (is_loading || is_cashier_onboarding))) return localize('Cashier'); + if (isDesktop || (is_default_route && (is_loading || is_cashier_onboarding))) return localize('Cashier'); return selected_route.getTitle?.(); };