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
4 changes: 2 additions & 2 deletions src/libs/ReportPrimaryActionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ function isPrimaryPayAction({
const isReportApproved = isReportApprovedUtils({report});
const isReportClosed = isClosedReportUtils(report);
const isProcessingReport = isProcessingReportUtils(report);
const isExported = isExportedUtil(reportActions);
const isExported = isExportedUtil(reportActions, report);
const hasExportError = hasExportErrorUtil(reportActions, report);
const didExportFail = !isExported && hasExportError;

Expand Down Expand Up @@ -272,7 +272,7 @@ function isExportAction(report: Report, currentUserLogin: string, policy?: Polic
return false;
}

const hasExportError = hasExportErrorUtil(reportActions);
const hasExportError = hasExportErrorUtil(reportActions, report);
if (syncEnabled && !hasExportError) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/inbox/report/ReportDetailsExportPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function ReportDetailsExportPage({route}: ReportDetailsExportPageProps) {

const iconToDisplay = getIntegrationIcon(connectionName, expensifyIcons);
const canBeExported = canBeExportedUtil(report);
const isExported = isExportedUtil(reportActions);
const isExported = isExportedUtil(reportActions, report);

const confirmExport = useCallback(
(type: ExportType) => {
Expand Down
Loading