mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-01-10 09:56:24 +00:00
Don't clear input on error
This commit is contained in:
parent
a31423034f
commit
5ae2d03c8b
1 changed files with 0 additions and 1 deletions
|
@ -77,7 +77,6 @@ export function SettingArrayComponent({
|
||||||
// TODO add picker for users etc?
|
// TODO add picker for users etc?
|
||||||
if (option.type !== OptionType.ARRAY && !(inputElement.value.length >= 18 && inputElement.value.length <= 19 && !isNaN(Number(inputElement.value)))) {
|
if (option.type !== OptionType.ARRAY && !(inputElement.value.length >= 18 && inputElement.value.length <= 19 && !isNaN(Number(inputElement.value)))) {
|
||||||
setError("Value is not a valid snowflake ID");
|
setError("Value is not a valid snowflake ID");
|
||||||
inputElement.value = "";
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setItems([...items, inputElement.value]);
|
setItems([...items, inputElement.value]);
|
||||||
|
|
Loading…
Reference in a new issue