reset input value on submit
This commit is contained in:
@@ -530,10 +530,11 @@ const ImportAccountDialog = ({
|
||||
const labelText = type === "import" ? "Account secret" : "Account Name";
|
||||
const cancelText = type === "import" ? "Cancel" : "Skip";
|
||||
|
||||
const handleSubmit = () => {
|
||||
const handleSubmit = async () => {
|
||||
if (type === "create") {
|
||||
const name = capitalize(value);
|
||||
addFaucetAccount(name, true);
|
||||
await addFaucetAccount(name, true);
|
||||
setValue("");
|
||||
return;
|
||||
}
|
||||
importAccount(value);
|
||||
|
||||
Reference in New Issue
Block a user