diff --git a/components/mdc/TextInput/helpers.js b/components/mdc/TextInput/helpers.js index 85d97be8..d6a50920 100644 --- a/components/mdc/TextInput/helpers.js +++ b/components/mdc/TextInput/helpers.js @@ -5,5 +5,5 @@ export const addOrRemoveInvalidClass = async (isInvalid, element) => { export function getDecimalPlacesLength(number = 0) { const string = String(number) const length = string.includes('e-') ? string.split('e-')?.[1] : string.split('.')[1]?.length - return length || 0 + return Number(length || 0) }