Skip to content

Commit 21ca37c

Browse files
author
Daniel Gale-Rosen
committed
lint/typecheck errors
1 parent e3ccbc0 commit 21ca37c

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function MoneyRequestReportPreviewContent({
456456
if (isPaidAnimationRunning) {
457457
return CONST.REPORT.REPORT_PREVIEW_ACTIONS.PAY;
458458
}
459-
return getReportPreviewAction(violations, iouReport, policy, transactions, isIouReportArchived || isChatReportArchived, reportActions, invoiceReceiverPolicy);
459+
return getReportPreviewAction(violations, iouReport, policy, transactions, isIouReportArchived || isChatReportArchived, invoiceReceiverPolicy);
460460
}, [isPaidAnimationRunning, violations, iouReport, policy, transactions, isIouReportArchived, reportActions, invoiceReceiverPolicy, isChatReportArchived]);
461461

462462
const addExpenseDropdownOptions = useMemo(

src/libs/DebugUtils.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,9 @@ function validateReportDraftProperty(key: keyof Report | keyof ReportNameValuePa
472472
case 'isDeletedParentAction':
473473
case 'isWaitingOnBankAccount':
474474
case 'isCancelledIOU':
475+
case 'hasReportBeenReopened':
476+
case 'isExportedToIntegration':
477+
case 'hasExportError':
475478
return validateBoolean(value);
476479
case 'exportFailedTime':
477480
case 'lastReadSequenceNumber':
@@ -623,6 +626,9 @@ function validateReportDraftProperty(key: keyof Report | keyof ReportNameValuePa
623626
unheldNonReimbursableTotal: CONST.RED_BRICK_ROAD_PENDING_ACTION,
624627
isWaitingOnBankAccount: CONST.RED_BRICK_ROAD_PENDING_ACTION,
625628
isCancelledIOU: CONST.RED_BRICK_ROAD_PENDING_ACTION,
629+
hasReportBeenReopened: CONST.RED_BRICK_ROAD_PENDING_ACTION,
630+
isExportedToIntegration: CONST.RED_BRICK_ROAD_PENDING_ACTION,
631+
hasExportError: CONST.RED_BRICK_ROAD_PENDING_ACTION,
626632
iouReportID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
627633
preexistingReportID: CONST.RED_BRICK_ROAD_PENDING_ACTION,
628634
nonReimbursableTotal: CONST.RED_BRICK_ROAD_PENDING_ACTION,

src/types/utils/whitelistedReportKeys.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ type WhitelistedReport = OnyxCommon.OnyxValueWithOfflineFeedback<
5050
errors: unknown;
5151
isWaitingOnBankAccount: unknown;
5252
isCancelledIOU: unknown;
53+
hasReportBeenReopened: unknown;
54+
isExportedToIntegration: unknown;
55+
hasExportError: unknown;
5356
iouReportID: unknown;
5457
preexistingReportID: unknown;
5558
nonReimbursableTotal: unknown;

0 commit comments

Comments
 (0)