Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ function QuickbooksDesktopExportPage({policy}: WithPolicyConnectionsProps) {
{
description: translate('workspace.accounting.preferredExporter'),
onPress: () => Navigation.navigate(ROUTES.POLICY_ACCOUNTING_QUICKBOOKS_DESKTOP_PREFERRED_EXPORTER.getRoute(policyID)),
title: qbdConfig?.export?.exporter ?? policyOwner,
// We use the logical OR (||) here instead of ?? because `exporter` could be an empty string
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
Comment thread
lakchote marked this conversation as resolved.
title: qbdConfig?.export?.exporter || policyOwner,
subscribedSettings: [CONST.QUICKBOOKS_DESKTOP_CONFIG.EXPORTER],
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ function QuickbooksDesktopPreferredExporterConfigurationPage({policy}: WithPolic
value: exporter.email,
text: exporter.email,
keyForList: exporter.email,
isSelected: (currentExporter ?? policy?.owner) === exporter.email,
// We use the logical OR (||) here instead of ?? because `exporter` could be an empty string
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
Comment thread
ZhenjaHorbach marked this conversation as resolved.
isSelected: (currentExporter || policy?.owner) === exporter.email,
});
return options;
}, []),
Expand Down