diff --git a/apps/web/Components/Calculation/Form/Insurance/InsuranceTable/config.tsx b/apps/web/Components/Calculation/Form/Insurance/InsuranceTable/config.tsx index 74d61fb..8b9d71a 100644 --- a/apps/web/Components/Calculation/Form/Insurance/InsuranceTable/config.tsx +++ b/apps/web/Components/Calculation/Form/Insurance/InsuranceTable/config.tsx @@ -49,7 +49,7 @@ export const columns: ColumnsType = [ min={0} parser={parser} precision={2} - step={1_000} + step={1000} /> ); }, diff --git a/apps/web/Components/Calculation/Form/Insurance/InsuranceTable/hooks.js b/apps/web/Components/Calculation/Form/Insurance/InsuranceTable/hooks.js index 4dfd576..4ee4c53 100644 --- a/apps/web/Components/Calculation/Form/Insurance/InsuranceTable/hooks.js +++ b/apps/web/Components/Calculation/Form/Insurance/InsuranceTable/hooks.js @@ -13,7 +13,7 @@ export function useInsuranceValue(key, valueName) { const [value, setValue] = useState(storeValue); - const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1_000 }); + const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1000 }); useEffect(() => { if (storeValue !== value) { diff --git a/apps/web/Components/Calculation/Form/Payments/PaymentsTable/hooks.js b/apps/web/Components/Calculation/Form/Payments/PaymentsTable/hooks.js index 4cb3295..0d7f308 100644 --- a/apps/web/Components/Calculation/Form/Payments/PaymentsTable/hooks.js +++ b/apps/web/Components/Calculation/Form/Payments/PaymentsTable/hooks.js @@ -6,7 +6,7 @@ export function usePaymentValue(index) { const [storeValue, setStoreValue] = useRowValue(index); const [value, setValue] = useState(storeValue); - const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1_000 }); + const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1000 }); useEffect(() => { if (storeValue !== value) { diff --git a/apps/web/Components/Calculation/builders/hooks.js b/apps/web/Components/Calculation/builders/hooks.js index baaf214..60958fd 100644 --- a/apps/web/Components/Calculation/builders/hooks.js +++ b/apps/web/Components/Calculation/builders/hooks.js @@ -6,7 +6,7 @@ export function useStoreValue(valueName) { const [storeValue, setStoreValue] = useValue(valueName); const [value, setValue] = useState(storeValue); - const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1_000 }); + const debouncedSetStoreValue = useDebouncedCallback(setStoreValue, 350, { maxWait: 1000 }); useEffect(() => { if (storeValue !== value) { diff --git a/apps/web/Components/Calculation/config/elements-props.ts b/apps/web/Components/Calculation/config/elements-props.ts index c828437..017f436 100644 --- a/apps/web/Components/Calculation/config/elements-props.ts +++ b/apps/web/Components/Calculation/config/elements-props.ts @@ -199,7 +199,7 @@ const props: Partial = { }, tbxEngineVolume: { min: 0, - max: 99.999_9, + max: 99.9999, step: 0.5, precision: 4, parser, @@ -356,7 +356,7 @@ const props: Partial = { tbxIRR_Perc: { min: 0, max: 500, - step: 0.000_1, + step: 0.0001, precision: 6, parser, formatter: formatterExtra, diff --git a/packages/eslint-config-custom/rules.js b/packages/eslint-config-custom/rules.js index 4d1e2d8..091a394 100644 --- a/packages/eslint-config-custom/rules.js +++ b/packages/eslint-config-custom/rules.js @@ -71,7 +71,7 @@ module.exports = { }, ], 'unicorn/numeric-separators-style': [ - 'off', + 'warn', { onlyIfContainsSeparator: false, hexadecimal: {