diff --git a/src/libs/actions/IOU.js b/src/libs/actions/IOU.js index 888e4ff12ad6..f8ade194fe80 100644 --- a/src/libs/actions/IOU.js +++ b/src/libs/actions/IOU.js @@ -2254,7 +2254,7 @@ function editMoneyRequest(transaction, transactionThreadReportID, transactionCha } /** - * Updates the created date of a money request + * Updates the amount and currency fields of a money request * * @param {String} transactionID * @param {Number} transactionThreadReportID diff --git a/src/pages/EditRequestPage.js b/src/pages/EditRequestPage.js index 6bdeb4e38354..4a0dce41265c 100644 --- a/src/pages/EditRequestPage.js +++ b/src/pages/EditRequestPage.js @@ -9,11 +9,11 @@ import ScreenWrapper from '@components/ScreenWrapper'; import tagPropTypes from '@components/tagPropTypes'; import transactionPropTypes from '@components/transactionPropTypes'; import compose from '@libs/compose'; +import * as CurrencyUtils from '@libs/CurrencyUtils'; import Navigation from '@libs/Navigation/Navigation'; import * as OptionsListUtils from '@libs/OptionsListUtils'; import * as PolicyUtils from '@libs/PolicyUtils'; import * as ReportUtils from '@libs/ReportUtils'; -import * as CurrencyUtils from '@libs/CurrencyUtils'; import * as TransactionUtils from '@libs/TransactionUtils'; import * as IOU from '@userActions/IOU'; import CONST from '@src/CONST'; @@ -129,7 +129,7 @@ function EditRequestPage({report, route, parentReport, policyCategories, policyT Navigation.dismissModal(); return; } - // Temporarily disabling currency editing and it will be enabled as a quick follow up + IOU.updateMoneyRequestAmountAndCurrency(transaction.transactionID, report.reportID, newCurrency, newAmount); Navigation.dismissModal(); },