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
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
import type {ReportsSplitNavigatorParamList} from '@libs/Navigation/types';
import {
getFirstVisibleReportActionID,
getMostRecentIOURequestActionID,
getOneTransactionThreadReportID,
hasNextActionMadeBySameActor,
isCurrentActionUnread,
Expand Down Expand Up @@ -180,7 +179,6 @@
const {showDelegateNoAccessModal} = useDelegateNoAccessActions();

const transactionsWithoutPendingDelete = useMemo(() => transactions.filter((t) => !isTransactionPendingDelete(t)), [transactions]);
const mostRecentIOUReportActionID = useMemo(() => getMostRecentIOURequestActionID(reportActions), [reportActions]);
// reportActions is passed as an array because it's sorted chronologically for FlatList rendering and pagination.
// However, getOriginalReportID expects the Onyx object format (keyed by reportActionID) for efficient lookups.
const reportActionsObject = useMemo(() => {
Expand Down Expand Up @@ -751,7 +749,6 @@
report={report}
transactionThreadReport={transactionThreadReport}
displayAsGroup={displayAsGroup}
mostRecentIOUReportActionID={mostRecentIOUReportActionID}
shouldDisplayNewMarker={reportAction.reportActionID === unreadMarkerReportActionID}
shouldDisplayReplyDivider={visibleReportActions.length > 1}
isFirstVisibleReportAction={firstVisibleReportActionID === reportAction.reportActionID}
Expand All @@ -769,14 +766,13 @@
/>
);
},
[

Check warning on line 769 in src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx

View workflow job for this annotation

GitHub Actions / ESLint check

React Hook useCallback has a duplicate dependency: 'isOffline'. Either omit it or remove the dependency array

Check warning on line 769 in src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

React Hook useCallback has a duplicate dependency: 'isOffline'. Either omit it or remove the dependency array
visibleReportActions,
reportActionsObject,
parentReportAction,
report,
isOffline,
transactionThreadReport,
mostRecentIOUReportActionID,
unreadMarkerReportActionID,
firstVisibleReportActionID,
linkedReportActionID,
Expand Down
22 changes: 0 additions & 22 deletions src/components/ReportActionItem/MoneyRequestAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ import type {StyleProp, ViewStyle} from 'react-native';
import RenderHTML from '@components/RenderHTML';
import useCurrentUserPersonalDetails from '@hooks/useCurrentUserPersonalDetails';
import useLocalize from '@hooks/useLocalize';
import useNetwork from '@hooks/useNetwork';
import useOnyx from '@hooks/useOnyx';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useStyleUtils from '@hooks/useStyleUtils';
import useThemeStyles from '@hooks/useThemeStyles';
import {createTransactionThreadReport} from '@libs/actions/Report';
import {isIOUReportPendingCurrencyConversion} from '@libs/IOUUtils';
import Navigation from '@libs/Navigation/Navigation';
import type {PlatformStackRouteProp} from '@libs/Navigation/PlatformStackNavigation/types';
import type {TransactionDuplicateNavigatorParamList} from '@libs/Navigation/types';
Expand All @@ -32,7 +30,6 @@ import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import SCREENS from '@src/SCREENS';
import type * as OnyxTypes from '@src/types/onyx';
import {isEmptyObject} from '@src/types/utils/EmptyObject';
import TransactionPreview from './TransactionPreview';

type MoneyRequestActionProps = {
Expand All @@ -48,9 +45,6 @@ type MoneyRequestActionProps = {
/** The ID of the current report */
reportID: string | undefined;

/** Is this IOU ACTION the most recent? */
isMostRecentIOUReportAction: boolean;

/** Popover context menu anchor, used for showing context menu */
contextMenuAnchor?: ContextMenuAnchor;

Expand Down Expand Up @@ -78,7 +72,6 @@ function MoneyRequestAction({
chatReportID,
requestReportID,
reportID,
isMostRecentIOUReportAction,
contextMenuAnchor,
checkIfContextMenuActive = () => {},
isHovered = false,
Expand All @@ -89,15 +82,12 @@ function MoneyRequestAction({
}: MoneyRequestActionProps) {
const {shouldOpenReportInRHP} = useReportActionItemState();
const {onPreviewPressed} = useReportActionItemActions();
const [chatReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${chatReportID}`);
const [iouReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${requestReportID}`);
const [reportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${chatReportID}`, {canEvict: false});
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED);
const [betas] = useOnyx(ONYXKEYS.BETAS);
const StyleUtils = useStyleUtils();
const styles = useThemeStyles();
const {translate} = useLocalize();
const {isOffline} = useNetwork();
const {shouldUseNarrowLayout} = useResponsiveLayout();
const {email: currentUserEmail, accountID: currentUserAccountID} = useCurrentUserPersonalDetails();
const route = useRoute<PlatformStackRouteProp<TransactionDuplicateNavigatorParamList, typeof SCREENS.TRANSACTION_DUPLICATE.REVIEW>>();
Expand Down Expand Up @@ -146,19 +136,8 @@ function MoneyRequestAction({
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(action?.childReportID, undefined, undefined, Navigation.getActiveRoute()));
};

let shouldShowPendingConversionMessage = false;
const isDeletedParentAction = isDeletedParentActionReportActionsUtils(action);
const isReversedTransaction = isReversedTransactionReportActionsUtils(action);
if (
!isEmptyObject(iouReport) &&
!isEmptyObject(reportActions) &&
chatReport?.iouReportID &&
isMostRecentIOUReportAction &&
action.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.ADD &&
isOffline
) {
shouldShowPendingConversionMessage = isIOUReportPendingCurrencyConversion(iouReport);
}

if (isDeletedParentAction || isReversedTransaction) {
let message: TranslationPaths;
Expand All @@ -185,7 +164,6 @@ function MoneyRequestAction({
isTrackExpense={isTrackExpenseAction}
contextMenuAnchor={contextMenuAnchor}
checkIfContextMenuActive={checkIfContextMenuActive}
shouldShowPendingConversionMessage={shouldShowPendingConversionMessage}
onPreviewPressed={onMoneyRequestPreviewPressed}
containerStyles={[reportPreviewStyles.transactionPreviewStandaloneStyle, isReviewDuplicateTransactionPage ? [containerStyles, styles.borderNone] : styles.mt2]}
isHovered={isHovered}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import useOnyx from '@hooks/useOnyx';
import useParticipantsInvoiceReport from '@hooks/useParticipantsInvoiceReport';
import usePermissions from '@hooks/usePermissions';
import usePolicy from '@hooks/usePolicy';
import useReportTransactionsCollection from '@hooks/useReportTransactionsCollection';
import {getTotalAmountForIOUReportPreviewButton} from '@libs/MoneyRequestReportUtils';
import {
getReportTransactions,
hasHeldExpenses as hasHeldExpensesReportUtils,
hasOnlyNonReimbursableTransactions,
hasUpdatedTotal,
Expand All @@ -23,6 +23,7 @@ import {approveMoneyRequest, canIOUBePaid as canIOUBePaidIOUActions, payInvoice,
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import ROUTES from '@src/ROUTES';
import type {Transaction} from '@src/types/onyx';
import type {PaymentMethodType} from '@src/types/onyx/OriginalMessage';

type PayActionButtonProps = {
Expand Down Expand Up @@ -81,7 +82,10 @@ function PayActionButton({
const [betas] = useOnyx(ONYXKEYS.BETAS);
const [isSelfTourViewed] = useOnyx(ONYXKEYS.NVP_ONBOARDING, {selector: hasSeenTourSelector});

const transactions = getReportTransactions(iouReportID).filter((t) => isOffline || t.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
const reportTransactionsCollection = useReportTransactionsCollection(iouReportID);
const transactions = Object.values(reportTransactionsCollection ?? {}).filter(
(t): t is Transaction => !!t && (isOffline || t.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE),
);

const [transactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,19 @@ import useLocalize from '@hooks/useLocalize';
import useNetwork from '@hooks/useNetwork';
import useOnyx from '@hooks/useOnyx';
import useReportIsArchived from '@hooks/useReportIsArchived';
import useReportTransactionsCollection from '@hooks/useReportTransactionsCollection';
import useResponsiveLayout from '@hooks/useResponsiveLayout';
import useThemeStyles from '@hooks/useThemeStyles';
import {getConnectedIntegration, hasDynamicExternalWorkflow} from '@libs/PolicyUtils';
import {hasPendingDEWSubmit} from '@libs/ReportActionsUtils';
import getReportPreviewAction from '@libs/ReportPreviewActionUtils';
import {getAddExpenseDropdownOptions, getReportTransactions} from '@libs/ReportUtils';
import {getAddExpenseDropdownOptions} from '@libs/ReportUtils';
import variables from '@styles/variables';
import {canIOUBePaid as canIOUBePaidIOUActions} from '@userActions/IOU';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import {validTransactionDraftIDsSelector} from '@src/selectors/TransactionDraft';
import type {Transaction} from '@src/types/onyx';
import type {PaymentMethodType} from '@src/types/onyx/OriginalMessage';
import ApproveActionButton from './ApproveActionButton';
import PayActionButton from './PayActionButton';
Expand Down Expand Up @@ -72,7 +74,10 @@ function ReportPreviewActionButton({
const invoiceReceiverPolicyID = chatReport?.invoiceReceiver && 'policyID' in chatReport.invoiceReceiver ? chatReport.invoiceReceiver.policyID : undefined;
const [invoiceReceiverPolicy] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY}${invoiceReceiverPolicyID}`);
const {isOffline} = useNetwork();
const transactions = getReportTransactions(iouReportID).filter((t) => isOffline || t.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
const reportTransactionsCollection = useReportTransactionsCollection(iouReportID);
const transactions = Object.values(reportTransactionsCollection ?? {}).filter(
(t): t is Transaction => !!t && (isOffline || t.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE),
);

const isIouReportArchived = useReportIsArchived(iouReportID);
const isChatReportArchived = useReportIsArchived(chatReportID);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ import useLocalize from '@hooks/useLocalize';
import useNetwork from '@hooks/useNetwork';
import useOnyx from '@hooks/useOnyx';
import usePermissions from '@hooks/usePermissions';
import {canSubmitAndIsAwaitingForCurrentUser, getReportTransactions, hasViolations as hasViolationsReportUtils} from '@libs/ReportUtils';
import useReportTransactionsCollection from '@hooks/useReportTransactionsCollection';
import {canSubmitAndIsAwaitingForCurrentUser, hasViolations as hasViolationsReportUtils} from '@libs/ReportUtils';
import {hasAnyPendingRTERViolation as hasAnyPendingRTERViolationTransactionUtils} from '@libs/TransactionUtils';
import {submitReport} from '@userActions/IOU';
import {markPendingRTERTransactionsAsCash} from '@userActions/Transaction';
import CONST from '@src/CONST';
import ONYXKEYS from '@src/ONYXKEYS';
import type {Transaction} from '@src/types/onyx';

type SubmitActionButtonProps = {
iouReportID: string | undefined;
Expand Down Expand Up @@ -40,7 +42,10 @@ function SubmitActionButton({iouReportID, chatReportID, isSubmittingAnimationRun
const [reportActions] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT_ACTIONS}${iouReportID}`);
const [delegateEmail] = useOnyx(ONYXKEYS.ACCOUNT, {selector: delegateEmailSelector});
const {isOffline} = useNetwork();
const transactions = getReportTransactions(iouReportID).filter((t) => isOffline || t.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE);
const reportTransactionsCollection = useReportTransactionsCollection(iouReportID);
const transactions = Object.values(reportTransactionsCollection ?? {}).filter(
(t): t is Transaction => !!t && (isOffline || t.pendingAction !== CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE),
);

const isASAPSubmitBetaEnabled = isBetaEnabled(CONST.BETAS.ASAP_SUBMIT);
const hasViolations = hasViolationsReportUtils(iouReport?.reportID, transactionViolations, currentUserAccountID, currentUserEmail);
Expand Down
5 changes: 0 additions & 5 deletions src/components/ReportActionItem/TransactionPreview/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ type TransactionPreviewProps = {
/** True if the IOU Preview card is hovered */
isHovered?: boolean;

/** Whether or not an IOU report contains expenses in a different currency
* that are either created or cancelled offline, and thus haven't been converted to the report's currency yet
*/
shouldShowPendingConversionMessage?: boolean;

/** Whether a message is a whisper */
isWhisper?: boolean;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ function ChatListItem<TItem extends ListItem>({
onPress={() => onSelectRow(item)}
parentReportAction={undefined}
displayAsGroup={false}
isMostRecentIOUReportAction={false}
shouldDisplayNewMarker={false}
index={item.index ?? 0}
isFirstVisibleReportAction={false}
Expand Down
6 changes: 4 additions & 2 deletions src/hooks/useTransactionViolationOfWorkspace.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import {useCallback} from 'react';
import type {OnyxCollection} from 'react-native-onyx';
import {extractCollectionItemID} from '@libs/CollectionUtils';
import {getReportTransactions, isChatRoom, isPolicyExpenseChat, isPolicyRelatedReport, isTaskReport} from '@libs/ReportUtils';
import {isChatRoom, isPolicyExpenseChat, isPolicyRelatedReport, isTaskReport} from '@libs/ReportUtils';
import type {OnyxCollectionKey} from '@src/ONYXKEYS';
import ONYXKEYS from '@src/ONYXKEYS';
import {transactionsByReportIDSelector} from '@src/selectors/Transaction';
import type {Report, TransactionViolations} from '@src/types/onyx';
import useOnyx from './useOnyx';

function useTransactionViolationOfWorkspace(policyID?: string) {
const [allReports] = useOnyx(ONYXKEYS.COLLECTION.REPORT);
const [transactionsByReportID] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION, {selector: transactionsByReportIDSelector});
const reportsToArchive = Object.values(allReports ?? {}).filter(
(report): report is Report => report != null && isPolicyRelatedReport(report, policyID) && (isChatRoom(report) || isPolicyExpenseChat(report) || isTaskReport(report)),
);
Expand All @@ -17,7 +19,7 @@ function useTransactionViolationOfWorkspace(policyID?: string) {
if (!report?.iouReportID) {
continue;
}
const reportTransactions = getReportTransactions(report.iouReportID);
const reportTransactions = transactionsByReportID?.[report.iouReportID] ?? [];
for (const transaction of reportTransactions) {
transactionIDSet.add(transaction.transactionID);
}
Expand Down
15 changes: 2 additions & 13 deletions src/libs/IOUUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import {getCurrencyUnit} from './CurrencyUtils';
import Navigation from './Navigation/Navigation';
import {isPaidGroupPolicy} from './PolicyUtils';
import {getOriginalMessage, isMoneyRequestAction} from './ReportActionsUtils';
import {getReportTransactions, isSelfDM} from './ReportUtils';
import {isSelfDM} from './ReportUtils';
import {endSpan, getSpan, startSpan} from './telemetry/activeSpans';
import {getCurrency, getTagArrayFromName} from './TransactionUtils';
import {getTagArrayFromName} from './TransactionUtils';

function navigateToStartMoneyRequestStep(requestType: IOURequestType, iouType: IOUType, transactionID: string, reportID: string, iouAction?: IOUAction, backToReport?: string): void {
if (iouAction === CONST.IOU.ACTION.CATEGORIZE || iouAction === CONST.IOU.ACTION.SUBMIT || iouAction === CONST.IOU.ACTION.SHARE) {
Expand Down Expand Up @@ -251,16 +251,6 @@ function updateIOUOwnerAndTotal<TReport extends OnyxInputOrEntry<Report>>(
return iouReportUpdate;
}

/**
* Returns whether or not an IOU report contains expenses in a different currency
* that are either created or cancelled offline, and thus haven't been converted to the report's currency yet
*/
function isIOUReportPendingCurrencyConversion(iouReport: Report): boolean {
Comment thread
linhvovan29546 marked this conversation as resolved.
const reportTransactions = getReportTransactions(iouReport.reportID);
const pendingRequestsInDifferentCurrency = reportTransactions.filter((transaction) => transaction.pendingAction && getCurrency(transaction) !== iouReport.currency);
return pendingRequestsInDifferentCurrency.length > 0;
}

/**
* Checks if the iou type is one of request, send, invoice or split.
*/
Expand Down Expand Up @@ -465,7 +455,6 @@ export {
calculateSplitPercentagesFromAmounts,
getExistingTransactionID,
insertTagIntoTransactionTagsString,
isIOUReportPendingCurrencyConversion,
isMovingTransactionFromTrackExpense,
shouldUseTransactionDraft,
isValidMoneyRequestType,
Expand Down
5 changes: 5 additions & 0 deletions src/libs/ReportUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@
};

let conciergeReportIDOnyxConnect: OnyxEntry<string>;
Onyx.connect({

Check warning on line 1048 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.CONCIERGE_REPORT_ID,
callback: (value) => {
conciergeReportIDOnyxConnect = value;
Expand All @@ -1053,7 +1053,7 @@
});

const defaultAvatarBuildingIconTestID = 'SvgDefaultAvatarBuilding Icon';
Onyx.connect({

Check warning on line 1056 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.SESSION,
callback: (value) => {
// When signed out, val is undefined
Expand All @@ -1071,7 +1071,7 @@
let allPersonalDetails: OnyxEntry<PersonalDetailsList>;
let allPersonalDetailLogins: string[];
let currentUserPersonalDetails: OnyxEntry<PersonalDetails>;
Onyx.connect({

Check warning on line 1074 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.PERSONAL_DETAILS_LIST,
callback: (value) => {
if (deprecatedCurrentUserAccountID) {
Expand All @@ -1083,7 +1083,7 @@
});

let allReportsDraft: OnyxCollection<Report>;
Onyx.connect({

Check warning on line 1086 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.REPORT_DRAFT,
waitForCollectionCallback: true,
callback: (value) => (allReportsDraft = value),
Expand All @@ -1091,7 +1091,7 @@

let allPolicies: OnyxCollection<Policy>;
let policiesArray: Policy[] = [];
Onyx.connect({

Check warning on line 1094 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.POLICY,
waitForCollectionCallback: true,
callback: (value) => {
Expand All @@ -1101,7 +1101,7 @@
});

let allPolicyDrafts: OnyxCollection<Policy>;
Onyx.connect({

Check warning on line 1104 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.POLICY_DRAFTS,
waitForCollectionCallback: true,
callback: (value) => (allPolicyDrafts = value),
Expand All @@ -1109,7 +1109,7 @@

let allReports: OnyxCollection<Report>;
let reportsByPolicyID: ReportByPolicyMap;
Onyx.connect({

Check warning on line 1112 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.REPORT,
waitForCollectionCallback: true,
callback: (value) => {
Expand Down Expand Up @@ -1145,14 +1145,14 @@
});

let betaConfiguration: OnyxEntry<BetaConfiguration> = {};
Onyx.connect({

Check warning on line 1148 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.BETA_CONFIGURATION,
callback: (value) => (betaConfiguration = value ?? {}),
});

let deprecatedAllTransactions: OnyxCollection<Transaction> = {};
let deprecatedReportsTransactions: Record<string, Transaction[]> = {};
Onyx.connect({

Check warning on line 1155 in src/libs/ReportUtils.ts

View workflow job for this annotation

GitHub Actions / Changed files ESLint check

Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
key: ONYXKEYS.COLLECTION.TRANSACTION,
waitForCollectionCallback: true,
callback: (value) => {
Expand Down Expand Up @@ -1297,6 +1297,11 @@
return Object.values(transactions).filter((transaction): transaction is Transaction => !!transaction && transaction.reportID === reportID);
}

/**
* This function is being migrated to remove `deprecatedReportsTransactions`.
* If you need to use this function, you must explicitly pass the `allReportsTransactions` parameter
* instead of relying on the default value. In React components, prefer using the `useReportTransactions` hook.
Comment thread
linhvovan29546 marked this conversation as resolved.
*/
function getReportTransactions(reportID: string | undefined, allReportsTransactions: Record<string, Transaction[]> = deprecatedReportsTransactions): Transaction[] {
if (!reportID) {
return [];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ function DebugReportActionCreatePage({
report={{reportID}}
parentReportAction={undefined}
displayAsGroup={false}
isMostRecentIOUReportAction={false}
shouldDisplayNewMarker={false}
index={0}
isFirstVisibleReportAction={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ function DebugReportActionPreview({reportAction, reportID}: DebugReportActionPre
report={report ?? ({} as Report)}
parentReportAction={undefined}
displayAsGroup={false}
isMostRecentIOUReportAction={false}
shouldDisplayNewMarker={false}
index={0}
isFirstVisibleReportAction={false}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ function DuplicateTransactionItem({transaction, index, onPreviewPressed}: Duplic
index={index}
displayAsGroup={false}
shouldDisplayNewMarker={false}
isMostRecentIOUReportAction={false}
isFirstVisibleReportAction={false}
shouldDisplayContextMenu={false}
userWalletTierName={userWalletTierName}
Expand Down
Loading
Loading