chore: fix build errors

This commit is contained in:
Paul Makles
2022-06-10 17:00:37 +01:00
parent 277eaa685d
commit 71f8fc86a4
6 changed files with 25 additions and 12 deletions

View File

@@ -29,7 +29,6 @@ export function CreateBotModal({ onClose, onCreate }: Props) {
try {
const { bot } = await client.bots.create({ name });
onCreate(bot);
onClose();
} catch (err) {
setError(takeError(err));
}
@@ -43,7 +42,10 @@ export function CreateBotModal({ onClose, onCreate }: Props) {
{
confirmation: true,
palette: "accent",
onClick: handleSubmit(onSubmit),
onClick: async () => {
await handleSubmit(onSubmit);
return true;
},
children: <Text id="app.special.modals.actions.create" />,
},
{