mirror of
https://github.com/stoatchat/for-legacy-web.git
synced 2026-03-07 09:25:27 +00:00
fix: modify account, and create bot forms not being submitted (#697)
This commit is contained in:
@@ -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" />,
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user