Skip to content

Commit

Permalink
Merge pull request #47290 from nkdengineer/fix/46675
Browse files Browse the repository at this point in the history
fix: Preferred exporter check-mark is missing
  • Loading branch information
grgia authored Aug 14, 2024
2 parents 3b48840 + 8490915 commit 29fb6bb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function NetSuitePreferredExporterSelectPage({policy}: WithPolicyConnectionsProp
value: exporter.email,
text: exporter.email,
keyForList: exporter.email,
isSelected: config?.exporter === exporter.email,
isSelected: (config?.exporter ?? policyOwner) === exporter.email,
});
return options;
}, []);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function QuickbooksPreferredExporterConfigurationPage({policy}: WithPolicyConnec
value: exporter.email,
text: exporter.email,
keyForList: exporter.email,
isSelected: exportConfiguration?.exporter === exporter.email,
isSelected: (exportConfiguration?.exporter ?? policy?.owner) === exporter.email,
});
return options;
}, []),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ function XeroPreferredExporterSelectPage({policy}: WithPolicyConnectionsProps) {
value: exporter.email,
text: exporter.email,
keyForList: exporter.email,
isSelected: config?.export?.exporter === exporter.email,
isSelected: (config?.export?.exporter ?? policyOwner) === exporter.email,
});
return options;
}, []);
}, [config?.export?.exporter, exporters, policyOwner, currentUserLogin]);
}, [policyOwner, exporters, currentUserLogin, config?.export?.exporter]);

const selectExporter = useCallback(
(row: CardListItem) => {
Expand Down

0 comments on commit 29fb6bb

Please sign in to comment.