From 0cfa577763a40bb21354cc8d0c12ee493684c5fc Mon Sep 17 00:00:00 2001 From: Filip Solecki Date: Thu, 21 Mar 2024 09:18:39 +0100 Subject: [PATCH] Fix menu items titles --- src/pages/workspace/taxes/WorkspaceTaxesSettingsPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/workspace/taxes/WorkspaceTaxesSettingsPage.tsx b/src/pages/workspace/taxes/WorkspaceTaxesSettingsPage.tsx index 0d1a8f1629c7..8fbfa7b79292 100644 --- a/src/pages/workspace/taxes/WorkspaceTaxesSettingsPage.tsx +++ b/src/pages/workspace/taxes/WorkspaceTaxesSettingsPage.tsx @@ -39,13 +39,13 @@ function WorkspaceTaxesSettingsPage({ pendingAction: policy?.taxRates?.pendingFields?.name, }, { - title: policy?.taxRates?.taxes[policy?.taxRates?.defaultExternalID]?.name, + title: policy?.taxRates?.taxes?.[policy?.taxRates?.defaultExternalID]?.name, description: translate('workspace.taxes.workspaceDefault'), action: () => Navigation.navigate(ROUTES.WORKSPACE_TAXES_SETTINGS_WORKSPACE_CURRENCY_DEFAULT.getRoute(policyID)), pendingAction: policy?.taxRates?.pendingFields?.defaultExternalID, }, { - title: policy?.taxRates?.taxes[policy?.taxRates?.foreignTaxDefault]?.name, + title: policy?.taxRates?.taxes?.[policy?.taxRates?.foreignTaxDefault]?.name, description: translate('workspace.taxes.foreignDefault'), action: () => Navigation.navigate(ROUTES.WORKSPACE_TAXES_SETTINGS_FOREIGN_CURRENCY_DEFAULT.getRoute(policyID)), pendingAction: policy?.taxRates?.pendingFields?.foreignTaxDefault,