Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3f062cd

Browse files
aldo-expensifyOSBotify
authored andcommittedJun 11, 2024··
Merge pull request #43451 from Expensify/francois-qbo-crash
Prevent crash when connecting to QuickBooks Online (cherry picked from commit 09cc7e3)
1 parent de2a952 commit 3f062cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/pages/workspace/WorkspaceMoreFeaturesPage.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function WorkspaceMoreFeaturesPage({policy, route}: WorkspaceMoreFeaturesPagePro
5858
const {translate} = useLocalize();
5959
const {canUseAccountingIntegrations} = usePermissions();
6060
const hasAccountingConnection = !!policy?.areConnectionsEnabled && !isEmptyObject(policy?.connections);
61-
const isSyncTaxEnabled = !!policy?.connections?.quickbooksOnline?.config.syncTax || !!policy?.connections?.xero?.config.importTaxRates;
61+
const isSyncTaxEnabled = !!policy?.connections?.quickbooksOnline?.config?.syncTax || !!policy?.connections?.xero?.config?.importTaxRates;
6262
const policyID = policy?.id ?? '';
6363

6464
const [isOrganizeWarningModalOpen, setIsOrganizeWarningModalOpen] = useState<boolean>(false);

0 commit comments

Comments
 (0)
Please sign in to comment.