Skip to content

Commit 4fb527d

Browse files
committed
update the fallback data
1 parent e2cf849 commit 4fb527d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function IOURequestStepTag({
5555
const [participantReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(transaction?.participants?.at(0)?.reportID)}`);
5656
const {policy: policyFromTransaction} = usePolicyForTransaction({
5757
transaction,
58-
reportPolicyID: getIOURequestPolicyID(transaction, report ?? participantReport),
58+
reportPolicyID: getIOURequestPolicyID(transaction, report?.policyID ? report : participantReport),
5959
action,
6060
iouType,
6161
isPerDiemRequest: isPerDiemRequest(transaction),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function IOURequestStepTaxRatePage({
5151
const {getCurrencyDecimals} = useCurrencyListActions();
5252

5353
const [participantReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(transaction?.participants?.at(0)?.reportID)}`);
54-
const {policy} = usePolicyForTransaction({transaction, reportPolicyID: getIOURequestPolicyID(transaction, report ?? participantReport), action, iouType});
54+
const {policy} = usePolicyForTransaction({transaction, reportPolicyID: getIOURequestPolicyID(transaction, report?.policyID ? report : participantReport), action, iouType});
5555

5656
const [policyCategories] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_CATEGORIES}${policy?.id}`);
5757
const [policyTags] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_TAGS}${policy?.id}`);

0 commit comments

Comments
 (0)