diff --git a/components/Accounts.tsx b/components/Accounts.tsx index 6b53fb6..a979c62 100644 --- a/components/Accounts.tsx +++ b/components/Accounts.tsx @@ -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);