Commit 70c7496a authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Kushal Pandya

Replace _.any() with _.some()

parent 668e483f
...@@ -26,7 +26,7 @@ $.fn.requiresInput = function requiresInput() { ...@@ -26,7 +26,7 @@ $.fn.requiresInput = function requiresInput() {
const values = _.map($(fieldSelector, $form), field => field.value); const values = _.map($(fieldSelector, $form), field => field.value);
// Disable the button if any required fields are empty // Disable the button if any required fields are empty
if (values.length && _.any(values, _.isEmpty)) { if (values.length && _.some(values, _.isEmpty)) {
$button.disable(); $button.disable();
} else { } else {
$button.enable(); $button.enable();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment