mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 07:02:10 -05:00
fix: modify account, and create bot forms not being submitted (#697)
This commit is contained in:
parent
a1ef1dce5e
commit
34e6995d86
2 changed files with 2 additions and 2 deletions
|
@ -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" />,
|
||||
|
|
|
@ -75,7 +75,7 @@ export function ModifyAccountModal({ onClose, field }: Props) {
|
|||
{
|
||||
confirmation: true,
|
||||
onClick: async () => {
|
||||
await handleSubmit(onSubmit);
|
||||
await handleSubmit(onSubmit)();
|
||||
return true;
|
||||
},
|
||||
children:
|
||||
|
|
Loading…
Reference in a new issue