Skip to content

Commit

Permalink
fix: remove extra const
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMuzyk committed Mar 15, 2024
1 parent 78bd350 commit e096ce3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libs/PolicyDistanceRatesUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ type RateValueForm = typeof ONYXKEYS.FORMS.WORKSPACE_RATE_AND_UNIT_FORM | typeof

function validateRateValue(values: FormOnyxValues<RateValueForm>, currency: string, toLocaleDigit: (arg: string) => string): FormInputErrors<RateValueForm> {
const errors: FormInputErrors<RateValueForm> = {};
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
Expand Down

0 comments on commit e096ce3

Please sign in to comment.