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

This commit is contained in:
Leda 2022-06-17 15:51:10 +00:00 committed by GitHub
parent a1ef1dce5e
commit 34e6995d86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

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

View file

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