Skip to content
7 changes: 5 additions & 2 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2146,11 +2146,13 @@ function getExportIntegrationActionFragments(reportAction: OnyxEntry<ReportActio
url: '',
});
}

if (reimbursableUrls.length === 1) {
const shouldAddPeriod = nonReimbursableUrls.length === 0;
const reimbursableUrl = reimbursableUrls.at(0) ?? '';
result.push({
text: translateLocal('report.actions.type.exportedToIntegration.reimburseableLink') + (shouldAddPeriod ? '.' : ''),
url: reimbursableUrls.at(0) ?? '',
url: reimbursableUrl.startsWith('https://') ? reimbursableUrl : '',
});
}
if (reimbursableUrls.length === 1 && nonReimbursableUrls.length) {
Expand All @@ -2164,7 +2166,8 @@ function getExportIntegrationActionFragments(reportAction: OnyxEntry<ReportActio
let url = '';

if (nonReimbursableUrls.length === 1) {
url = nonReimbursableUrls.at(0) ?? '';
const nonReimbursableUrl = nonReimbursableUrls.at(0) ?? '';
url = nonReimbursableUrl.startsWith('https://') ? nonReimbursableUrl : '';
} else {
switch (label) {
case CONST.POLICY.CONNECTIONS.NAME_USER_FRIENDLY.xero:
Expand Down