Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
537d906
Open and approve bills behind the newDotBillPay beta
cead22 Nov 5, 2026
3a468a3
Merge remote-tracking branch 'origin/main' into carlos-billpay-open-a…
cead22 Nov 19, 2026
b3bfcdc
Merge remote-tracking branch 'origin/main' into carlos-billpay-open-a…
cead22 Nov 23, 2026
4313ae3
Keep the pay next step on approved bills and let the title field edit…
cead22 Nov 23, 2026
8cef3b8
Remove the bill check from the formula title update
cead22 Nov 23, 2026
7dac65a
Keep isReimbursementManual about the policy and skip payment for expe…
cead22 Nov 24, 2026
74f74a1
Let canApproveBill ignore held expenses, because bills can't be held
cead22 Nov 24, 2026
82f0efd
Check the bill's green dot without skipping the report preview scan
cead22 Nov 24, 2026
c9a3e9a
Keep isExpenseReport for expense reports only and opt bills in where …
cead22 Nov 24, 2026
5b2d98e
Remove the bill checks that strict isExpenseReport already covers in …
cead22 Nov 24, 2026
2a9035a
Allow merging only on expense reports, which leaves out bills
cead22 Nov 24, 2026
e5d28d4
Remove the bill check from canDuplicateExpenseIntoSourceReport
cead22 Nov 24, 2026
c51a231
Add isExpenseOrBillReport for the places that treat bills like expens…
cead22 Nov 24, 2026
9206881
Use isExpenseOrBillReport where bills need expense report display, ed…
cead22 Nov 24, 2026
4f9761a
Merge remote-tracking branch 'origin/main' into carlos-billpay-open-a…
cead22 Nov 24, 2026
fe71571
Don't open the report history from a bill's next step
cead22 Nov 24, 2026
0cd11f5
Open the report history page for bills on group policies
cead22 Nov 30, 2026
b701300
Merge remote-tracking branch 'origin/main' into carlos-billpay-open-a…
cead22 Nov 30, 2026
0b2fbed
Merge remote-tracking branch 'origin/main' into carlos-billpay-open-a…
cead22 Nov 30, 2026
bec3b1b
Merge remote-tracking branch 'origin/main' into carlos-billpay-open-a…
cead22 Dec 1, 2026
4ad2659
Fix bill test calls after main changed their signatures
cead22 Dec 1, 2026
e9ec834
Merge remote-tracking branch 'origin/main' into carlos-billpay-open-a…
cead22 Dec 2, 2026
e529861
pass `policyApprovalRules` in BillPayTest
lakchote Dec 2, 2026
64bb941
pass archived flag in useConfirmApproval test
lakchote Dec 2, 2026
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
2 changes: 1 addition & 1 deletion src/CONST/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2686,14 +2686,14 @@ const CONST = {
TYPE: {
CHAT: 'chat',
EXPENSE: 'expense',
BILL: 'bill',
IOU: 'iou',
TASK: 'task',
SUPPORT_TICKET: 'supportTicket',
INVOICE: 'invoice',
},
UNSUPPORTED_TYPE: {
PAYCHECK: 'paycheck',
BILL: 'bill',
},
CHAT_TYPE: chatTypes,
WORKSPACE_CHAT_ROOMS: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {useGetPersonalDetailsByLogin} from '@hooks/usePersonalDetailByLogin';
import {usePersonalDetail} from '@hooks/usePersonalDetails';
import useReportApprovalWarningData from '@hooks/useReportApprovalWarningData';

import {isBillReport} from '@libs/BillUtils';
import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
import {isSubmitPolicy} from '@libs/PolicyUtils';
import {hasHeldExpensesFromTransactions as hasHeldExpensesReportUtils, hasViolations as hasViolationsReportUtils} from '@libs/ReportUtils';
Expand Down Expand Up @@ -81,6 +82,10 @@ function useConfirmApproval(
violationsCollection: warningViolations,
});

// The approved animation keeps Pay as the primary action until AnimatedSettlementButton ends it. Bills don't show
// Pay, so nothing would end the animation on a bill.
const shouldAnimateApproval = !isBillReport(moneyRequestReport);

const onApprove = (full: boolean) => {
if (isDelegateAccessRestricted) {
showDelegateNoAccessModal();
Expand All @@ -91,7 +96,7 @@ function useConfirmApproval(
return;
}
confirmApproveReportViolations(() => {
if (!isSubmitPolicy(policy)) {
if (shouldAnimateApproval && !isSubmitPolicy(policy)) {
startApprovedAnimation();
}
approveMoneyRequest({
Expand All @@ -110,7 +115,7 @@ function useConfirmApproval(
ownerBillingGracePeriodEnd,
ownerLogin,
full,
onApproved: startApprovedAnimation,
onApproved: shouldAnimateApproval ? startApprovedAnimation : undefined,
delegateEmail,
delegateAccountID,
isTrackIntentUser,
Expand Down
4 changes: 2 additions & 2 deletions src/components/MoneyReportHeaderStatusBarSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import useTheme from '@hooks/useTheme';
import useTransactionsAndViolationsForReport from '@hooks/useTransactionsAndViolationsForReport';

import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
import {isGroupPolicyExpenseReport, isProcessingReport} from '@libs/ReportUtils';
import {isGroupPolicyExpenseOrBillReport, isProcessingReport} from '@libs/ReportUtils';
import {getUnsuppressibleBrokenConnectionTransactionID} from '@libs/TransactionUtils';

import variables from '@styles/variables';
Expand Down Expand Up @@ -55,7 +55,7 @@ function MoneyReportHeaderStatusBarSection({reportID, statusBarType, iouTransact
/>
);

const canOpenReportHistory = isGroupPolicyExpenseReport(moneyRequestReport, policy?.type);
const canOpenReportHistory = isGroupPolicyExpenseOrBillReport(moneyRequestReport, policy?.type);
const getStatusBar = (icon: React.ReactNode, description: string) => {
const statusBar = (
<MoneyRequestHeaderStatusBar
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
import {turnOnMobileSelectionMode} from '@libs/actions/MobileSelectionMode';
import {CAROUSEL_SOURCE} from '@libs/actions/TransactionThreadNavigation';
import {getReportRowPolicy, getReportRowReport} from '@libs/MoneyRequestReportUtils';
import {getMoneyRequestSpendBreakdown, getReportOfflinePendingActionAndErrors, isExpenseReport, isIOUReport} from '@libs/ReportUtils';
import {getMoneyRequestSpendBreakdown, getReportOfflinePendingActionAndErrors, isExpenseOrBillReport, isIOUReport} from '@libs/ReportUtils';
import {getTransactionPendingAction} from '@libs/TransactionUtils';

import type ActionListRefType from '@pages/inbox/ActionListTypes';
Expand Down Expand Up @@ -238,7 +238,7 @@ function MoneyRequestReportTransactionList({
policyTagLists,
});

const shouldShowGroupedTransactions = isExpenseReport(report) && !isIOUReport(report);
const shouldShowGroupedTransactions = isExpenseOrBillReport(report) && !isIOUReport(report);
const {currentSelection, currentGroupBy, shouldGroupTransactions, selectLayout} = useMoneyRequestReportLayout(shouldShowGroupedTransactions);

const {groupedTransactions, listItems, visualOrderTransactions, visualOrderTransactionIDs, lastTransactionID} = useMoneyRequestReportGroupedTransactions({
Expand Down
2 changes: 1 addition & 1 deletion src/components/ParentNavigationSubtitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ function ParentNavigationSubtitle({
currentFullScreenRoute?.name === NAVIGATORS.SEARCH_FULLSCREEN_NAVIGATOR);

// Bills have no parent chat, so their subtitle shows only the policy name.
const shouldShowPolicyNameOnly = reportType === CONST.REPORT.UNSUPPORTED_TYPE.BILL && !reportName && !!workspaceName;
const shouldShowPolicyNameOnly = reportType === CONST.REPORT.TYPE.BILL && !reportName && !!workspaceName;

// We should not display the parent navigation subtitle if the user does not have access to the parent chat (the reportName is empty in this case)
if (!reportName && !shouldShowPolicyNameOnly) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ import {
canUserPerformWriteAction as canUserPerformWriteActionReportUtils,
getTransactionDetails,
isActionCreator,
isExpenseReport,
isExpenseOrBillReport,
isInvoiceReport,
isOpenReport,
isReportApproved,
Expand Down Expand Up @@ -377,7 +377,7 @@ function MoneyRequestView({
? translate('common.reservationNightsWithNightlyRate', {count: reservationNights, nightlyRate: convertToDisplayString(actualAmount / reservationNights, actualCurrency)})
: '';

const transactionOriginalAmount = transaction && getOriginalAmountForDisplay(transaction, isExpenseReport(moneyRequestReport));
const transactionOriginalAmount = transaction && getOriginalAmountForDisplay(transaction, isExpenseOrBillReport(moneyRequestReport));
const formattedOriginalAmount = transactionOriginalAmount && transactionOriginalCurrency && convertToDisplayString(transactionOriginalAmount, transactionOriginalCurrency);
const isFromCardImport = isCardTransactionTransactionUtils(transaction);
const cardProgramName =
Expand Down Expand Up @@ -1908,7 +1908,7 @@ function MoneyRequestView({
/>
</OfflineWithFeedback>
)}
{!!parentReport && isExpenseReport(parentReport) && !isFromReviewDuplicates && !isFromMergeTransaction && (
{!!parentReport && isExpenseOrBillReport(parentReport) && !isFromReviewDuplicates && !isFromMergeTransaction && (
<MoneyRequestViewAdditionalFields
transaction={transaction}
report={parentReport}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
import getBase62ReportID from '@libs/getBase62ReportID';
import {getVendorDisplayName} from '@libs/PolicyUtils';
import {getReportName} from '@libs/ReportNameUtils';
import {getReimbursableTotal, isCurrentUserSubmitter, isExpenseReport} from '@libs/ReportUtils';
import {getReimbursableTotal, isCurrentUserSubmitter, isExpenseOrBillReport} from '@libs/ReportUtils';
import {getViolationsForTransaction} from '@libs/SearchUIUtils';
import {COPYABLE_TEXT_DATA_SET} from '@libs/SelectionScraper';
import {getShiftKeyFromEvent} from '@libs/shiftRangeSelection';
Expand Down Expand Up @@ -585,7 +585,7 @@ function TransactionItemRowWide({
style={[getSearchColumnStyles(CONST.SEARCH.TABLE_COLUMNS.ORIGINAL_AMOUNT, {isAmountColumnWide, shouldRemoveTotalColumnFlex})]}
>
<AmountCell
total={getOriginalAmountForDisplay(transactionItem, isExpenseReport(transactionItem.report))}
total={getOriginalAmountForDisplay(transactionItem, isExpenseOrBillReport(transactionItem.report))}
currency={getOriginalCurrencyForDisplay(transactionItem)}
/>
</View>
Expand Down Expand Up @@ -721,7 +721,7 @@ function TransactionItemRowWide({
</View>
);
case CONST.SEARCH.TABLE_COLUMNS.TOTAL: {
const isFromExpenseReport = isExpenseReport(transactionItem.report ?? report);
const isFromExpenseReport = isExpenseOrBillReport(transactionItem.report ?? report);
const {amount: totalAmount, currency: totalCurrency} = getTotalForDisplay(transactionItem, report?.currency ?? policy?.outputCurrency, isFromExpenseReport);
return (
<View
Expand Down
4 changes: 2 additions & 2 deletions src/components/TransactionItemRow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import useThemeStyles from '@hooks/useThemeStyles';
import {getCompanyCardDescription} from '@libs/CardUtils';
import {getDecodedCategoryName, isCategoryMissing} from '@libs/CategoryUtils';
import {getIOUActionForTransactionID} from '@libs/ReportActionsUtils';
import {isExpenseReport, isSettled, shouldShowMarkAsDone} from '@libs/ReportUtils';
import {isExpenseOrBillReport, isSettled, shouldShowMarkAsDone} from '@libs/ReportUtils';
import {
getAmount,
getDescription,
Expand Down Expand Up @@ -261,7 +261,7 @@ function TransactionItemRow({
const shouldShowAttendees = (isUnreported ? !!isAttendeesEnabledForMovingPolicy : shouldShowAttendeesUtils(CONST.IOU.TYPE.SUBMIT, policy)) && transactionAttendees.length > 0;

const attendeesCount = transactionAttendees.length ?? 0;
const totalAmount = getAmount(transactionItem, isExpenseReport(report));
const totalAmount = getAmount(transactionItem, isExpenseOrBillReport(report));

return (
<TransactionItemRowWide
Expand Down
7 changes: 5 additions & 2 deletions src/hooks/useLifecycleActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {useOpenReportSubmitToPopover} from '@components/ReportSubmitToPopoverAnc
import {useSearchQueryContext, useSearchResultsContext, useSearchSelectionActions, useSearchSelectionContext} from '@components/Search/SearchContext';
import Text from '@components/Text';

import {isBillReport} from '@libs/BillUtils';
import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
import {getValidConnectedIntegration, isSubmitPolicy} from '@libs/PolicyUtils';
import {getFilteredReportActionsForReportView} from '@libs/ReportActionsUtils';
Expand Down Expand Up @@ -213,8 +214,10 @@ function useLifecycleActions({reportID, startApprovedAnimation, startAnimation,
showLockedAccountModal();
return;
}
// Bills don't show Pay, so nothing would end the approved animation on a bill.
const shouldAnimateApproval = !skipAnimation && !isBillReport(moneyRequestReport);
confirmApproveReportViolations(() => {
if (!skipAnimation && !isSubmitPolicy(policy)) {
if (shouldAnimateApproval && !isSubmitPolicy(policy)) {
startApprovedAnimation();
}
approveMoneyRequest({
Expand All @@ -233,7 +236,7 @@ function useLifecycleActions({reportID, startApprovedAnimation, startAnimation,
ownerLogin: submitterLogin,
amountOwed,
onApproved: () => {
if (skipAnimation) {
if (!shouldAnimateApproval) {
return;
}
startApprovedAnimation();
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useSearchBulkActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ function shouldShowBulkDuplicateOption({

const reportID = selectedTransactions[id]?.reportID;
const submitterReport = reportID ? getReportOrDraftReport({reportID, searchReports, report: allReports?.[`${ONYXKEYS.COLLECTION.REPORT}${reportID}`]}) : undefined;
if (submitterReport && !isCurrentUserSubmitter(submitterReport)) {
if (submitterReport && (submitterReport.type === CONST.REPORT.TYPE.BILL || !isCurrentUserSubmitter(submitterReport))) {
return false;
}

Expand Down
4 changes: 3 additions & 1 deletion src/libs/BillPayReportActionUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ import type {Report, ReportAction} from '@src/types/onyx';

import type {OnyxEntry} from 'react-native-onyx';

import {isBillReport} from './BillUtils';

function isBillPayReport(report: OnyxEntry<Report>, isInvoiceLinkedToBill: boolean): boolean {
return report?.type === CONST.REPORT.UNSUPPORTED_TYPE.BILL || (report?.type === CONST.REPORT.TYPE.INVOICE && isInvoiceLinkedToBill);
return isBillReport(report) || (report?.type === CONST.REPORT.TYPE.INVOICE && isInvoiceLinkedToBill);
}

function isBillPayHistoryAction(action: OnyxEntry<ReportAction>, report: OnyxEntry<Report>, isInvoiceLinkedToBill: boolean): boolean {
Expand Down
4 changes: 2 additions & 2 deletions src/libs/BillUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ import type {OnyxInputOrEntry, Report} from '@src/types/onyx';

/** Bills are the reports that receivers approve and pay for a vendor's invoice. */
function isBillReport(report: OnyxInputOrEntry<Report>): boolean {
return report?.type === CONST.REPORT.UNSUPPORTED_TYPE.BILL;
return report?.type === CONST.REPORT.TYPE.BILL;
}

/** Bills stay hidden from users without the newDotBillPay beta. */
function shouldHideBillReport(reportType: string | undefined, isBillPayBetaEnabled: boolean): boolean {
return reportType === CONST.REPORT.UNSUPPORTED_TYPE.BILL && !isBillPayBetaEnabled;
return reportType === CONST.REPORT.TYPE.BILL && !isBillPayBetaEnabled;
}

export {isBillReport, shouldHideBillReport};
2 changes: 1 addition & 1 deletion src/libs/Formula.ts
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ function formatType(type: string | undefined): string {
[CONST.REPORT.TYPE.EXPENSE]: 'Expense Report',
[CONST.REPORT.TYPE.INVOICE]: 'Invoice',
[CONST.REPORT.TYPE.CHAT]: 'Chat',
[CONST.REPORT.UNSUPPORTED_TYPE.BILL]: 'Bill',
[CONST.REPORT.TYPE.BILL]: 'Bill',
[CONST.REPORT.UNSUPPORTED_TYPE.PAYCHECK]: 'Paycheck',
[CONST.REPORT.TYPE.IOU]: 'IOU',
[CONST.REPORT.TYPE.TASK]: 'Task',
Expand Down
4 changes: 2 additions & 2 deletions src/libs/MoneyRequestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type {ManuallyEnteredScanFields} from './TransactionUtils';

import {convertToBackendAmount, convertToFrontendAmountAsInteger} from './CurrencyUtils';
import replaceAllDigits from './replaceAllDigits';
import {isExpenseReport, isExpenseRequest, isPolicyExpenseChat} from './ReportUtils';
import {isExpenseOrBillReport, isExpenseRequest, isPolicyExpenseChat} from './ReportUtils';
import {
doesMoneyRequestDraftHaveUserInput,
hasValidModifiedAmount,
Expand Down Expand Up @@ -193,7 +193,7 @@ function isMerchantRequired(report: OnyxEntry<Report>, transaction: OnyxEntry<Tr
if (transaction && isExpenseUnreported(transaction)) {
return false;
}
return isExpenseReport(report) || isPolicyExpenseChat(report) || isExpenseRequest(report) || !!transaction?.participants?.some((participant) => !!participant.isPolicyExpenseChat);
return isExpenseOrBillReport(report) || isPolicyExpenseChat(report) || isExpenseRequest(report) || !!transaction?.participants?.some((participant) => !!participant.isPolicyExpenseChat);
}

type AmountHasUnsavedChangesParams = {
Expand Down
12 changes: 8 additions & 4 deletions src/libs/NextStepUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import type {ValueOf} from 'type-fest';
import {addMonths, format, isPast, parseISO, setDate} from 'date-fns';
import {Str} from 'expensify-common';

import {isBillReport} from './BillUtils';
import DateUtils from './DateUtils';
import Log from './Log';
import {
Expand All @@ -37,7 +38,7 @@ import {
getMoneyRequestSpendBreakdown,
getNextApproverAccountID,
getReasonAndReportActionThatRequiresAttention,
isExpenseReport,
isExpenseOrBillReport,
isInvoiceReport,
isOpenExpenseReport,
isPayer,
Expand Down Expand Up @@ -183,7 +184,7 @@ function buildNextStepMessage(
const requiredDepositCurrency = nextStep.requiredDepositCurrency ? Str.htmlEncode(nextStep.requiredDepositCurrency) : undefined;

// Auth sends the same approve and pay next steps for bills and expense reports, so the report type picks the wording.
const isBill = reportType === CONST.REPORT.UNSUPPORTED_TYPE.BILL;
const isBill = reportType === CONST.REPORT.TYPE.BILL;

const message = translate(`nextStep.message.${nextStep.messageKey}`, {actor, actorType, eta, etaType, requiredDepositCurrency, isBill});
if (!message) {
Expand Down Expand Up @@ -218,7 +219,7 @@ function buildOptimisticNextStep(params: BuildOptimisticNextStepParams): ReportN
personalDetailsByLogins,
} = params;

if (!isExpenseReport(report)) {
if (!isExpenseOrBillReport(report)) {
return null;
}

Expand Down Expand Up @@ -388,7 +389,10 @@ function buildOptimisticNextStep(params: BuildOptimisticNextStepParams): ReportN

// The server returns no further action for approved reports on workspaces that reimburse outside Expensify (Indirect)
const isReimbursementManual = reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_MANUAL;
if (isInvoiceReport(report) || reimbursableSpend === 0 || isReimbursementDisabled || isReimbursementManual) {

// Bills still wait for the payer, because manual reimbursement only skips expense reports.
const shouldSkipPayment = isReimbursementManual && !isBillReport(report);
if (isInvoiceReport(report) || reimbursableSpend === 0 || isReimbursementDisabled || shouldSkipPayment) {
nextStep = nextStepNoActionRequired;
break;
}
Expand Down
17 changes: 15 additions & 2 deletions src/libs/ReportActionsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1729,6 +1729,15 @@ function getVisibleReportActionErrors(reportAction: OnyxEntry<ReportAction>): Re
return rest;
}

/**
* Whether the action previews a vendor invoice that the current user pays through its linked bill. The bill receiver
* must not see that invoice in chats, but can still open it directly.
*/
function isReportPreviewHiddenForBillReceiver(reportAction: OnyxEntry<ReportAction>): boolean {
const linkedReportID = getIOUReportIDFromReportActionPreview(reportAction);
return !!linkedReportID && !!getReportOrDraftReport({reportID: linkedReportID})?.isHiddenForBillReceiver;
Comment thread
cead22 marked this conversation as resolved.
Resolved
}

/**
* Checks if a reportAction is fit for display, meaning that it's not deprecated, is of a valid
* and supported type, it's not deleted and also not closed.
Expand Down Expand Up @@ -1843,6 +1852,10 @@ function shouldReportActionBeVisible(
return false;
}

if (isReportPreviewHiddenForBillReceiver(reportAction)) {
return false;
}

if (isDeletedReportPreviewWithError(reportAction)) {
return true;
}
Expand Down Expand Up @@ -2623,7 +2636,7 @@ const isIOUActionMatchingTransactionList = (
return !!IOUTransactionID && reportTransactionIDs.includes(IOUTransactionID);
};

const oneTransactionThreadReportTypesSet = new Set<Report['type']>([CONST.REPORT.TYPE.IOU, CONST.REPORT.TYPE.EXPENSE, CONST.REPORT.UNSUPPORTED_TYPE.BILL, CONST.REPORT.TYPE.INVOICE]);
const oneTransactionThreadReportTypesSet = new Set<Report['type']>([CONST.REPORT.TYPE.IOU, CONST.REPORT.TYPE.EXPENSE, CONST.REPORT.TYPE.BILL, CONST.REPORT.TYPE.INVOICE]);

function canHaveOneTransactionThread(type: Report['type']): boolean {
return oneTransactionThreadReportTypesSet.has(type);
Expand All @@ -2645,7 +2658,7 @@ function getOneTransactionThreadReportAction(
}

// Loaded actions can miss some expenses of a bill, so only the count from the server shows that a bill has one expense.
if (report?.type === CONST.REPORT.UNSUPPORTED_TYPE.BILL && report.transactionCount !== 1) {
if (report?.type === CONST.REPORT.TYPE.BILL && report.transactionCount !== 1) {
return;
}

Expand Down
Loading
Loading