Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Reimburse Expenses] update track distance rate placeholder on currency change #18401

Merged
merged 1 commit into from
May 9, 2023
Merged
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
4 changes: 2 additions & 2 deletions src/pages/workspace/reimburse/WorkspaceReimburseView.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ class WorkspaceReimburseView extends React.Component {
unitValue: lodashGet(distanceCustomUnit, 'attributes.unit', 'mi'),
unitRateID: lodashGet(customUnitRate, 'customUnitRateID', ''),
unitRateValue: this.getUnitRateValue(customUnitRate),
outputCurrency: lodashGet(props, 'policy.outputCurrency', ''),
};

this.debounceUpdateOnCursorMove = this.debounceUpdateOnCursorMove.bind(this);
Expand Down Expand Up @@ -215,6 +214,7 @@ class WorkspaceReimburseView extends React.Component {

render() {
const viewAllReceiptsUrl = `expenses?policyIDList=${this.props.policy.id}&billableReimbursable=reimbursable&submitterEmail=%2B%2B`;
const outputCurrency = lodashGet(this.props, 'policy.outputCurrency', CONST.CURRENCY.USD);

return (
<>
Expand Down Expand Up @@ -265,7 +265,7 @@ class WorkspaceReimburseView extends React.Component {
<View style={[styles.rateCol]}>
<TextInput
label={this.props.translate('workspace.reimburse.trackDistanceRate')}
placeholder={this.state.outputCurrency}
placeholder={outputCurrency}
onChangeText={value => this.setRate(value)}
value={this.state.unitRateValue}
autoCompleteType="off"
Expand Down