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
1 change: 1 addition & 0 deletions src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -848,6 +848,7 @@ function MoneyRequestView({
isASAPSubmitBetaEnabled,
parentReportNextStep,
delegateAccountID,
reportPolicyTags,
isTrackIntentUser,
});
});
Expand Down
5 changes: 3 additions & 2 deletions src/libs/actions/IOU/UpdateMoneyRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -904,6 +904,7 @@ type UpdateMoneyRequestTaxRateParams = {
isASAPSubmitBetaEnabled: boolean;
parentReportNextStep: OnyxEntry<OnyxTypes.ReportNextStepDeprecated>;
delegateAccountID: number | undefined;
reportPolicyTags: OnyxEntry<OnyxTypes.PolicyTagLists>;
isTrackIntentUser: boolean | undefined;
};

Expand All @@ -924,6 +925,7 @@ function updateMoneyRequestTaxRate({
isASAPSubmitBetaEnabled,
parentReportNextStep,
delegateAccountID,
reportPolicyTags,
isTrackIntentUser,
}: UpdateMoneyRequestTaxRateParams) {
const transactionChanges = {
Expand All @@ -939,8 +941,7 @@ function updateMoneyRequestTaxRate({
transactionChanges,
policy,
policyTagList,
// TODO: Replace getPolicyTagsData (https://github.com/Expensify/App/issues/72721) with useOnyx hook
reportPolicyTags: getPolicyTagsData(parentReport?.policyID),
reportPolicyTags,
policyCategories,
currentUserAccountIDParam,
currentUserEmailParam,
Expand Down
2 changes: 2 additions & 0 deletions src/pages/iou/request/step/IOURequestStepTaxRatePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ function IOURequestStepTaxRatePage({
const [policyTags] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_TAGS}${policy?.id}`);
const [parentReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${getNonEmptyStringOnyxID(report?.parentReportID)}`);
const [parentReportNextStep] = useOnyx(`${ONYXKEYS.COLLECTION.NEXT_STEP}${getNonEmptyStringOnyxID(report?.parentReportID)}`);
const [reportPolicyTags] = useOnyx(`${ONYXKEYS.COLLECTION.POLICY_TAGS}${getNonEmptyStringOnyxID(parentReport?.policyID)}`);
const [iouReportOwnerLogin] = useOnyx(ONYXKEYS.PERSONAL_DETAILS_LIST, {selector: personalDetailsLoginSelector(parentReport?.ownerAccountID)});

const [splitDraftTransaction] = useOnyx(`${ONYXKEYS.COLLECTION.SPLIT_TRANSACTION_DRAFT}${transactionID}`);
Expand Down Expand Up @@ -114,6 +115,7 @@ function IOURequestStepTaxRatePage({
isASAPSubmitBetaEnabled,
parentReportNextStep,
delegateAccountID,
reportPolicyTags,
isTrackIntentUser,
};

Expand Down
Loading