chore: fix typo (#13592)

This commit is contained in:
novlan1
2025-08-18 09:23:12 +08:00
committed by GitHub
parent 945154cd1c
commit 8f55dcb69a

View File

@@ -56,8 +56,8 @@ const onInput = (key: ValueKeys) => {
return;
}
const maxlegnth = current.value === 'customLength' ? 4 : 6;
const newValue = (values.value[current.value] + key).slice(0, maxlegnth);
const maxlength = current.value === 'customLength' ? 4 : 6;
const newValue = (values.value[current.value] + key).slice(0, maxlength);
values.value[current.value] = newValue;