aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-08-18 19:18:10 +0200
committerRobin Jarry <robin@jarry.cc>2023-08-26 21:41:05 +0200
commit41dd51f7b30f328db5eb3f206b00ab9feebc2034 (patch)
tree8574936151ae18c374340a21ee44a19bcb38221d
parent9e171691cd3c4a5055fef4f43cab2dd790f8c061 (diff)
downloadaerc-41dd51f7b30f328db5eb3f206b00ab9feebc2034.tar.gz
aerc-41dd51f7b30f328db5eb3f206b00ab9feebc2034.zip
wizard: fix typo in validation
Require that smtpServer is not empty. Signed-off-by: Robin Jarry <robin@jarry.cc> Reviewed-by: Tristan Partin <tristan@partin.io> Tested-by: Tim Culverhouse <tim@timculverhouse.com>
-rw-r--r--widgets/account-wizard.go2
1 files changed, 1 insertions, 1 deletions
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