From a6b3a929b02781fab7ee8e088d28bf1070f44888 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Thu, 22 Feb 2024 12:09:36 -0700 Subject: [PATCH 1/2] disable currency row --- src/pages/workspace/WorkspaceProfilePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspaceProfilePage.tsx b/src/pages/workspace/WorkspaceProfilePage.tsx index 4ce5822dfaa0..3306eb79bd65 100644 --- a/src/pages/workspace/WorkspaceProfilePage.tsx +++ b/src/pages/workspace/WorkspaceProfilePage.tsx @@ -149,7 +149,7 @@ function WorkspaceProfilePage({policy, currencyList = {}, route}: WorkSpaceProfi title={formattedCurrency} description={translate('workspace.editor.currencyInputLabel')} shouldShowRightIcon={!readOnly} - disabled={hasVBA ?? readOnly} + disabled={hasVBA || readOnly} wrapperStyle={styles.sectionMenuItemTopDescription} onPress={onPressCurrency} shouldGreyOutWhenDisabled={false} From 4030feb6b39bae5145b8756e5378f413db060668 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Thu, 22 Feb 2024 12:17:06 -0700 Subject: [PATCH 2/2] fix lint --- src/pages/workspace/WorkspaceProfilePage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspaceProfilePage.tsx b/src/pages/workspace/WorkspaceProfilePage.tsx index 3306eb79bd65..ac330df33ac3 100644 --- a/src/pages/workspace/WorkspaceProfilePage.tsx +++ b/src/pages/workspace/WorkspaceProfilePage.tsx @@ -149,7 +149,7 @@ function WorkspaceProfilePage({policy, currencyList = {}, route}: WorkSpaceProfi title={formattedCurrency} description={translate('workspace.editor.currencyInputLabel')} shouldShowRightIcon={!readOnly} - disabled={hasVBA || readOnly} + disabled={(hasVBA ?? false) || readOnly} wrapperStyle={styles.sectionMenuItemTopDescription} onPress={onPressCurrency} shouldGreyOutWhenDisabled={false}