Skip to content

Commit

Permalink
fix: minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
koko57 committed Apr 23, 2024
1 parent 5355cca commit 895d37e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/ReportActionItem/MoneyRequestView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function MoneyRequestView({
onPress={() => Navigation.navigate(ROUTES.MONEY_REQUEST_STEP_DISTANCE.getRoute(CONST.IOU.ACTION.EDIT, iouType, transaction?.transactionID ?? '', report.reportID))}
/>
</OfflineWithFeedback>
{/* TODO: correct the pending field action https://github.com/Expensify/App/issues/36988 (?) */}
{/* TODO: correct the pending field action https://github.com/Expensify/App/issues/36988 */}
<OfflineWithFeedback pendingAction={getPendingFieldAction('waypoints')}>
<MenuItemWithTopDescription
description={translate('common.rate')}
Expand Down
2 changes: 0 additions & 2 deletions src/libs/DistanceRequestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,6 @@ function getMileageRates(policy: OnyxEntry<Policy>): Record<string, MileageRate>
* @param currency
* @returns The rate and unit in RateAndUnit object.
*/

function getRateForP2P(currency: string): RateAndUnit {
return CONST.CURRENCY_TO_DEFAULT_MILEAGE_RATE[currency] ?? CONST.CURRENCY_TO_DEFAULT_MILEAGE_RATE.USD;
}
Expand All @@ -243,7 +242,6 @@ function getDistanceRequestAmount(distance: number, unit: Unit, rate: number): n
* @param unit - The unit of measurement for the distance.
* @returns The distance in meters.
*/

function convertToDistanceInMeters(distance: number, unit: Unit): number {
if (unit === CONST.CUSTOM_UNITS.DISTANCE_UNIT_KILOMETERS) {
return distance / METERS_TO_KM;
Expand Down

0 comments on commit 895d37e

Please sign in to comment.