Skip to content

Commit

Permalink
update check for disabled toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
teneeto committed May 14, 2024
1 parent 1861a11 commit b44b907
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function QuickbooksTaxesPage({policy}: WithPolicyProps) {
accessibilityLabel={translate('workspace.accounting.taxes')}
isOn={!!syncTax}
onToggle={() => Connections.updatePolicyConnectionConfig(policyID, CONST.POLICY.CONNECTIONS.NAME.QBO, CONST.QUICK_BOOKS_CONFIG.SYNC_TAX, !syncTax)}
disabled={isJournalExportEntity}
disabled={!syncTax && isJournalExportEntity}
/>
</View>
</OfflineWithFeedback>
Expand Down

0 comments on commit b44b907

Please sign in to comment.