Skip to content

Commit 2fa24fc

Browse files
committed
fix_63903
1 parent 68cb94a commit 2fa24fc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/pages/iou/request/step/IOURequestStepReport.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from 'react';
22
import {useOnyx} from 'react-native-onyx';
33
import type {ListItem} from '@components/SelectionList/types';
44
import {changeTransactionsReport, setTransactionReport} from '@libs/actions/Transaction';
5+
import getNonEmptyStringOnyxID from '@libs/getNonEmptyStringOnyxID';
56
import Navigation from '@libs/Navigation/Navigation';
67
import CONST from '@src/CONST';
78
import ONYXKEYS from '@src/ONYXKEYS';
@@ -22,7 +23,7 @@ type IOURequestStepReportProps = WithWritableReportOrNotFoundProps<typeof SCREEN
2223
function IOURequestStepReport({route, transaction}: IOURequestStepReportProps) {
2324
const {backTo, action} = route.params;
2425
const reportID = transaction?.reportID === '0' ? transaction?.participants?.at(0)?.reportID : transaction?.reportID;
25-
const [transactionReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID}`, {canBeMissing: true});
26+
const [transactionReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(reportID)}`, {canBeMissing: false});
2627

2728
const isEditing = action === CONST.IOU.ACTION.EDIT;
2829

0 commit comments

Comments
 (0)