test: loop the correct amount of items

This commit is contained in:
Slug-Boi
2025-04-11 15:54:22 +02:00
parent 9b367ba86e
commit 951dbee1d0
+1 -1
View File
@@ -50,7 +50,7 @@ func errorGetMissingFields(m model_ca) {
}
if len(m.inputs) > 0 {
for i := 0; i < inpLen; i++ {
for i := 0; i < inpLen-1; i++ {
if m.inputs[i].Value() == "" {
m.errorModel.missing = append(m.errorModel.missing, "- "+strings.Split(m.inputs[i].Placeholder," (")[0])
}