Skip to content

Commit

Permalink
Fix lint and use disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuoch committed Mar 28, 2024
1 parent f597bea commit 25bb7e5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -189,10 +189,8 @@ function WorkspaceWorkflowsPage({policy, betas, route, session}: WorkspaceWorkfl
: translate('workflowsPage.connectBankAccount')
}
description={bankDisplayName}
disabled={isOffline || !isPolicyAdmin}
onPress={() => {
if (isOffline || !isPolicyAdmin) {
return;
}
if (!Policy.isCurrencySupportedForDirectReimbursement(policy?.outputCurrency ?? '')) {
setIsCurrencyModalOpen(true);
return;
Expand Down Expand Up @@ -244,6 +242,8 @@ function WorkspaceWorkflowsPage({policy, betas, route, session}: WorkspaceWorkfl
canUseDelayedSubmission,
displayNameForAuthorizedPayer,
session?.accountID,
isOffline,
isPolicyAdmin,
]);

const renderOptionItem = (item: ToggleSettingOptionRowProps, index: number) => (
Expand Down

0 comments on commit 25bb7e5

Please sign in to comment.