Skip to content

Commit

Permalink
Merge pull request #34200 from bernhardoj/fix/34066-distance-currency…
Browse files Browse the repository at this point in the history
…-not-update

Fix distance request currency preview is not updated
  • Loading branch information
thienlnam authored Jan 12, 2024
2 parents 2e3a895 + b3c4d49 commit e2d1443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestPreview.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function MoneyRequestPreview(props) {

const getDisplayAmountText = () => {
if (isDistanceRequest) {
return requestAmount && !hasPendingWaypoints ? CurrencyUtils.convertToDisplayString(requestAmount, props.transaction.currency) : translate('common.tbd');
return requestAmount && !hasPendingWaypoints ? CurrencyUtils.convertToDisplayString(requestAmount, requestCurrency) : translate('common.tbd');
}

if (isScanning) {
Expand Down

0 comments on commit e2d1443

Please sign in to comment.