diff --git a/src/context/intermediate/popovers/CreateBot.tsx b/src/context/intermediate/popovers/CreateBot.tsx index 80a8032c..65a71443 100644 --- a/src/context/intermediate/popovers/CreateBot.tsx +++ b/src/context/intermediate/popovers/CreateBot.tsx @@ -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: , diff --git a/src/context/intermediate/popovers/ModifyAccount.tsx b/src/context/intermediate/popovers/ModifyAccount.tsx index dadb6320..9feb5ba1 100644 --- a/src/context/intermediate/popovers/ModifyAccount.tsx +++ b/src/context/intermediate/popovers/ModifyAccount.tsx @@ -75,7 +75,7 @@ export function ModifyAccountModal({ onClose, field }: Props) { { confirmation: true, onClick: async () => { - await handleSubmit(onSubmit); + await handleSubmit(onSubmit)(); return true; }, children: