diff --git a/src/libs/PolicyDistanceRatesUtils.ts b/src/libs/PolicyDistanceRatesUtils.ts index b55e333ee292..8f1438b1d092 100644 --- a/src/libs/PolicyDistanceRatesUtils.ts +++ b/src/libs/PolicyDistanceRatesUtils.ts @@ -9,8 +9,7 @@ type RateValueForm = typeof ONYXKEYS.FORMS.WORKSPACE_RATE_AND_UNIT_FORM | typeof function validateRateValue(values: FormOnyxValues, currency: string, toLocaleDigit: (arg: string) => string): FormInputErrors { const errors: FormInputErrors = {}; - const rate = values.rate; - const parsedRate = MoneyRequestUtils.replaceAllDigits(rate, toLocaleDigit); + const parsedRate = MoneyRequestUtils.replaceAllDigits(values.rate, toLocaleDigit); const decimalSeparator = toLocaleDigit('.'); // Allow one more decimal place for accuracy