Skip to content

Commit

Permalink
fix(cashier): 🚑 fix header for tablet view (deriv-com#16903)
Browse files Browse the repository at this point in the history
  • Loading branch information
heorhi-deriv authored Sep 25, 2024
1 parent 5a289a8 commit a9cb798
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cashier/src/containers/cashier/cashier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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?.();
};
Expand Down

0 comments on commit a9cb798

Please sign in to comment.