From 41dd51f7b30f328db5eb3f206b00ab9feebc2034 Mon Sep 17 00:00:00 2001 From: Robin Jarry Date: Fri, 18 Aug 2023 19:18:10 +0200 Subject: wizard: fix typo in validation Require that smtpServer is not empty. Signed-off-by: Robin Jarry Reviewed-by: Tristan Partin Tested-by: Tim Culverhouse --- widgets/account-wizard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'widgets') diff --git a/widgets/account-wizard.go b/widgets/account-wizard.go index c76a67e7..6e54fe48 100644 --- a/widgets/account-wizard.go +++ b/widgets/account-wizard.go @@ -487,7 +487,7 @@ func (wizard *AccountWizard) finish(tutorial bool) { errors.New("IMAP server is required")) return } - if wizard.imapServer.String() == "" { + if wizard.smtpServer.String() == "" { wizard.errorFor(wizard.smtpServer, errors.New("SMTP server is required")) return -- cgit