Skip to content

Commit

Permalink
fix: #419 variables name
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex89198900 committed Feb 14, 2024
1 parent 4a5f2ba commit cbe79e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mw-webapp/src/utils/FormatterUtils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const FIRST_INDEX = 1;
const SECOND_INDEX = 1;

/**
* Formatter utils
Expand All @@ -9,7 +9,7 @@ export class FormatterInputValue {
* Checking for zero and formatting the value
*/
public static defaultFormatter(value: string | number) {
return typeof value === "string" && value.startsWith("0") ? value.slice(FIRST_INDEX) : value;
return typeof value === "string" && value.startsWith("0") ? value.slice(SECOND_INDEX) : value;
}

}

0 comments on commit cbe79e3

Please sign in to comment.