We have a polyfill for Array.every
This commit is contained in:
parent
2db0e8f68a
commit
47f2bc9cd7
@ -520,7 +520,7 @@ function useGetErrors(params: { kcContext: Pick<KcContextLike, "messagesPerField
|
|||||||
break required_field;
|
break required_field;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (values.find(value => value !== "") !== undefined) {
|
if (values.every(value => value !== "")) {
|
||||||
break required_field;
|
break required_field;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user