2
0

🐛 Fix smtp error details not displaying

This commit is contained in:
Baptiste Arnaud
2024-07-30 14:49:52 +02:00
parent 22953a3445
commit 38fa88f6d6

View File

@ -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',
},
})