Skip to content

Commit

Permalink
fix ESLint issues.
Browse files Browse the repository at this point in the history
Signed-off-by: krishna2323 <[email protected]>
  • Loading branch information
Krishna2323 committed Jan 12, 2025
1 parent 6c82ea8 commit 7ec5eea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
7 changes: 5 additions & 2 deletions src/components/ReportActionItem/MoneyRequestAction.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,15 @@ function MoneyRequestAction({

const onMoneyRequestPreviewPressed = () => {
if (isSplitBillAction) {
const reportActionID = action.reportActionID ?? '-1';
const reportActionID = action.reportActionID;
Navigation.navigate(ROUTES.SPLIT_BILL_DETAILS.getRoute(chatReportID, reportActionID, Navigation.getReportRHPActiveRoute()));
return;
}

const childReportID = action?.childReportID ?? '-1';
const childReportID = action?.childReportID;
if (!childReportID) {
return;
}
Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(childReportID));
};

Expand Down
4 changes: 2 additions & 2 deletions src/pages/home/report/ReportActionItemContentCreated.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ function ReportActionItemContentCreated({contextValue, parentReportAction, trans
const {translate} = useLocalize();
const {report, action, transactionThreadReport} = contextValue;

const policy = usePolicy(report.policyID === CONST.POLICY.OWNER_EMAIL_FAKE ? '-1' : report.policyID ?? '-1');
const [transaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID ?? '-1'}`);
const policy = usePolicy(report.policyID === CONST.POLICY.OWNER_EMAIL_FAKE ? undefined : report.policyID);
const [transaction] = useOnyx(`${ONYXKEYS.COLLECTION.TRANSACTION}${transactionID ?? CONST.DEFAULT_NUMBER_ID}`);

const transactionCurrency = TransactionUtils.getCurrency(transaction);

Expand Down

0 comments on commit 7ec5eea

Please sign in to comment.