💄 Better toast UI when it doesn't contain details

This commit is contained in:
Baptiste Arnaud
2023-04-27 15:07:08 +02:00
parent 9e8acd97aa
commit e827da7b6b
2 changed files with 5 additions and 1 deletions

View File

@@ -26,6 +26,10 @@ export const ImportTypebotFromFileButton = ({
console.error(err)
showToast({
description: "Failed to parse the file. Are you sure it's a typebot?",
details: {
content: JSON.stringify(err, null, 2),
lang: 'json',
},
})
}
}