@experium/findy-form 1.3.14 → 1.3.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,7 +90,7 @@ var validateLink = function validateLink(field, values) {
90
90
  return false;
91
91
  } else {
92
92
  var linkedValue = (0, _ramda.path)((0, _ramda.split)('.', "".concat(linkField)), values);
93
- return linkValue === linkedValue;
93
+ return linkValue === linkedValue ? field.required : false;
94
94
  }
95
95
  };
96
96
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@experium/findy-form",
3
- "version": "1.3.14",
3
+ "version": "1.3.15",
4
4
  "main": "./lib/index.js",
5
5
  "homepage": "https://experium.github.io/findy-form",
6
6
  "repository": "https://github.com/experium/findy-form",
@@ -55,7 +55,7 @@ export const validateLink = (field, values) => {
55
55
  } else {
56
56
  const linkedValue = path(split('.', `${linkField}`), values);
57
57
 
58
- return linkValue === linkedValue;
58
+ return linkValue === linkedValue ? field.required : false;
59
59
  }
60
60
  };
61
61