fix: duct-tape fix the bot edit issues

fixes #629
This commit is contained in:
Paul Makles
2022-06-21 11:14:51 +01:00
parent 3b7c1cbe20
commit 95ebd935ed
3 changed files with 4 additions and 26 deletions

View File

@@ -29,6 +29,7 @@ export function CreateBotModal({ onClose, onCreate }: Props) {
try {
const { bot } = await client.bots.create({ name });
onCreate(bot);
onClose();
} catch (err) {
setError(takeError(err));
}