Skip to content

Commit d4f052c

Browse files
committed
minor fix
1 parent b58ba6e commit d4f052c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/pages/workspace/expensifyCard/WorkspaceSettlementAccountPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function WorkspaceSettlementAccountPage({route}: WorkspaceSettlementAccountPageP
5555

5656
const domainName = cardSettings?.domainName ?? getDomainNameForPolicy(policyID);
5757

58-
const hasActiveAccountingConnection = policy?.connections && Object.keys(policy.connections).length > 0;
58+
const hasActiveAccountingConnection = !!(policy?.connections && Object.keys(policy.connections).length > 0);
5959

6060
const fetchPolicyAccountingData = useCallback(() => {
6161
if (!policyID) {
@@ -158,7 +158,7 @@ function WorkspaceSettlementAccountPage({route}: WorkspaceSettlementAccountPageP
158158
listHeaderContent={
159159
<>
160160
<Text style={[styles.mh5, styles.mv4]}>{translate('workspace.expensifyCard.settlementAccountDescription')}</Text>
161-
{!!isUsingContinuousReconciliation && !!connectionParam && (
161+
{!!isUsingContinuousReconciliation && !!connectionParam && hasActiveAccountingConnection && (
162162
<Text style={[styles.mh5, styles.mb6]}>
163163
<Text>{translate('workspace.expensifyCard.settlementAccountInfoPt1')}</Text>{' '}
164164
<TextLink

0 commit comments

Comments
 (0)