diff --git a/ghost/admin/app/components/posts/debug.js b/ghost/admin/app/components/posts/debug.js index 7740a19489..308d5a241e 100644 --- a/ghost/admin/app/components/posts/debug.js +++ b/ghost/admin/app/components/posts/debug.js @@ -20,11 +20,9 @@ export default class Debug extends Component { } get emailError() { - if (this.post.email?.error) { - return { - message: this.post.email.error - } - } + return { + message: this.post.email?.error || 'Failed to send email!' + }; } get emailSettings() {