Skip to content

Commit 29fb6bb

Browse files
authored
Merge pull request #47290 from nkdengineer/fix/46675
fix: Preferred exporter check-mark is missing
2 parents 3b48840 + 8490915 commit 29fb6bb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/pages/workspace/accounting/netsuite/export/NetSuitePreferredExporterSelectPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function NetSuitePreferredExporterSelectPage({policy}: WithPolicyConnectionsProp
5555
value: exporter.email,
5656
text: exporter.email,
5757
keyForList: exporter.email,
58-
isSelected: config?.exporter === exporter.email,
58+
isSelected: (config?.exporter ?? policyOwner) === exporter.email,
5959
});
6060
return options;
6161
}, []);

src/pages/workspace/accounting/qbo/export/QuickbooksPreferredExporterConfigurationPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function QuickbooksPreferredExporterConfigurationPage({policy}: WithPolicyConnec
4545
value: exporter.email,
4646
text: exporter.email,
4747
keyForList: exporter.email,
48-
isSelected: exportConfiguration?.exporter === exporter.email,
48+
isSelected: (exportConfiguration?.exporter ?? policy?.owner) === exporter.email,
4949
});
5050
return options;
5151
}, []),

src/pages/workspace/accounting/xero/export/XeroPreferredExporterSelectPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ function XeroPreferredExporterSelectPage({policy}: WithPolicyConnectionsProps) {
5858
value: exporter.email,
5959
text: exporter.email,
6060
keyForList: exporter.email,
61-
isSelected: config?.export?.exporter === exporter.email,
61+
isSelected: (config?.export?.exporter ?? policyOwner) === exporter.email,
6262
});
6363
return options;
6464
}, []);
65-
}, [config?.export?.exporter, exporters, policyOwner, currentUserLogin]);
65+
}, [policyOwner, exporters, currentUserLogin, config?.export?.exporter]);
6666

6767
const selectExporter = useCallback(
6868
(row: CardListItem) => {

0 commit comments

Comments
 (0)