diff --git a/src/libs/Navigation/types.ts b/src/libs/Navigation/types.ts index e3423b7c7d2f..5fb50eba29fc 100644 --- a/src/libs/Navigation/types.ts +++ b/src/libs/Navigation/types.ts @@ -335,6 +335,7 @@ type SplitDetailsNavigatorParamList = { field: string; reportID: string; reportActionID: string; + currency: string; }; [SCREENS.SPLIT_DETAILS.EDIT_CURRENCY]: undefined; }; diff --git a/src/pages/EditSplitBillPage.tsx b/src/pages/EditSplitBillPage.tsx index 566e887cd451..b4ca4763ced2 100644 --- a/src/pages/EditSplitBillPage.tsx +++ b/src/pages/EditSplitBillPage.tsx @@ -39,7 +39,7 @@ type EditSplitBillOnyxProps = { type EditSplitBillProps = EditSplitBillOnyxProps & StackScreenProps; function EditSplitBillPage({route, transaction, draftTransaction, report}: EditSplitBillProps) { - const {field: fieldToEdit, reportID, reportActionID} = route.params; + const {field: fieldToEdit, reportID, reportActionID, currency} = route.params; const { amount: transactionAmount, @@ -49,8 +49,7 @@ function EditSplitBillPage({route, transaction, draftTransaction, report}: EditS tag: transactionTag, } = ReportUtils.getTransactionDetails(draftTransaction ?? transaction) ?? {}; - const defaultCurrency = transactionCurrency; - + const defaultCurrency = currency ?? transactionCurrency; function navigateBackToSplitDetails() { Navigation.navigate(ROUTES.SPLIT_BILL_DETAILS.getRoute(reportID, reportActionID)); }