Skip to content

Commit 4c284fe

Browse files
committed
fix: change card conciliation order
1 parent 3c88c3c commit 4c284fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pages/workspace/accounting/PolicyAccountingPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ function PolicyAccountingPage({policy}: PolicyAccountingPageProps) {
105105
const currentXeroOrganization = findCurrentXeroOrganization(tenants, policy?.connections?.xero?.config?.tenantID);
106106
const shouldShowSynchronizationError = !!synchronizationError;
107107
const shouldShowReinstallConnectorMenuItem = shouldShowSynchronizationError && connectedIntegration === CONST.POLICY.CONNECTIONS.NAME.QBD;
108-
const shouldShowCardReconciliationOption = cardSettings?.paymentBankAccountID && policy?.areExpensifyCardsEnabled;
108+
const shouldShowCardReconciliationOption = policy?.areExpensifyCardsEnabled && cardSettings?.paymentBankAccountID;
109109

110110
const overflowMenu: ThreeDotsMenuProps['menuItems'] = useMemo(
111111
() => [

src/pages/workspace/accounting/reconciliation/CardReconciliationPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function CardReconciliationPage({policy, route}: CardReconciliationPageProps) {
4343
const {connection} = route.params;
4444
const connectionName = AccountingUtils.getConnectionNameFromRouteParam(connection) as ConnectionName;
4545
const autoSync = !!policy?.connections?.[connectionName]?.config?.autoSync?.enabled;
46-
const shouldShow = cardSettings?.paymentBankAccountID && policy?.areExpensifyCardsEnabled;
46+
const shouldShow = policy?.areExpensifyCardsEnabled && cardSettings?.paymentBankAccountID;
4747

4848
const toggleContinuousReconciliation = (value: boolean) => {
4949
Card.toggleContinuousReconciliation(workspaceAccountID, value, connectionName, currentConnectionName);

0 commit comments

Comments
 (0)