Skip to content

Commit 09cc7e3

Browse files
Merge pull request #43451 from Expensify/francois-qbo-crash
Prevent crash when connecting to QuickBooks Online
2 parents 27e235b + 5439a1a commit 09cc7e3

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)