Skip to content

Commit 1eacad0

Browse files
committed
#54 fixed fields list validation
1 parent 7372931 commit 1eacad0

File tree

1 file changed

+3
-2
lines changed
  • fields-core/src/commonMain/kotlin/dev/icerock/moko/fields/core

1 file changed

+3
-2
lines changed

fields-core/src/commonMain/kotlin/dev/icerock/moko/fields/core/FormFieldExt.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44

55
package dev.icerock.moko.fields.core
66

7-
fun List<FormField<*, *>>.validate(): Boolean =
8-
all { it.validate() }
7+
fun List<FormField<*, *>>.validate(): Boolean {
8+
return map { it.validate() }.all { true }
9+
}

0 commit comments

Comments
 (0)