From 38fa88f6d6c0915682ccdb54b9fd78612a17db1e Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Tue, 30 Jul 2024 14:49:52 +0200 Subject: [PATCH] :bug: Fix smtp error details not displaying --- .../integrations/sendEmail/components/SmtpConfigModal.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/builder/src/features/blocks/integrations/sendEmail/components/SmtpConfigModal.tsx b/apps/builder/src/features/blocks/integrations/sendEmail/components/SmtpConfigModal.tsx index ea87a9950..e5c304e91 100644 --- a/apps/builder/src/features/blocks/integrations/sendEmail/components/SmtpConfigModal.tsx +++ b/apps/builder/src/features/blocks/integrations/sendEmail/components/SmtpConfigModal.tsx @@ -87,7 +87,10 @@ export const SmtpCreateModalContent = ({ title: 'Invalid configuration', description: "We couldn't send the test email with your configuration", details: { - content: testSmtpError.message, + content: + 'response' in testSmtpError + ? (testSmtpError.response as string) + : testSmtpError.message, lang: 'json', }, })