From b29c8fd4c543b48b7a0d2e199917f01401791ce2 Mon Sep 17 00:00:00 2001 From: Krishna Gupta Date: Wed, 5 Jun 2024 01:49:00 +0530 Subject: [PATCH] fix: Distance rates - Default distance rate is Disabled instead of Enabled after creating new WS. Signed-off-by: Krishna Gupta --- src/CONST.ts | 2 +- src/libs/actions/Policy/Policy.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CONST.ts b/src/CONST.ts index 32c500962d8a..23ac96f0e573 100755 --- a/src/CONST.ts +++ b/src/CONST.ts @@ -1826,7 +1826,7 @@ const CONST = { NAME_DISTANCE: 'Distance', DISTANCE_UNIT_MILES: 'mi', DISTANCE_UNIT_KILOMETERS: 'km', - MILEAGE_IRS_RATE: 0.655, + MILEAGE_IRS_RATE: 0.67, DEFAULT_RATE: 'Default Rate', RATE_DECIMALS: 3, FAKE_P2P_ID: '_FAKE_P2P_ID_', diff --git a/src/libs/actions/Policy/Policy.ts b/src/libs/actions/Policy/Policy.ts index 4d918352ba91..32c347925d84 100644 --- a/src/libs/actions/Policy/Policy.ts +++ b/src/libs/actions/Policy/Policy.ts @@ -2008,6 +2008,7 @@ function buildOptimisticCustomUnits(): OptimisticCustomUnits { name: CONST.CUSTOM_UNITS.DEFAULT_RATE, rate: CONST.CUSTOM_UNITS.MILEAGE_IRS_RATE * CONST.POLICY.CUSTOM_UNIT_RATE_BASE_OFFSET, currency, + enabled: true, }, }, },