fix: modify account, and create bot forms not being submitted (#697)

pull/1049/head
Leda 2022-06-17 15:51:10 +00:00 committed by GitHub
parent c7b1349f7d
commit 1e8fd76819
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ export function CreateBotModal({ onClose, onCreate }: Props) {
confirmation: true,
palette: "accent",
onClick: async () => {
await handleSubmit(onSubmit);
await handleSubmit(onSubmit)();
return true;
},
children: <Text id="app.special.modals.actions.create" />,

View File

@ -75,7 +75,7 @@ export function ModifyAccountModal({ onClose, field }: Props) {
{
confirmation: true,
onClick: async () => {
await handleSubmit(onSubmit);
await handleSubmit(onSubmit)();
return true;
},
children: