redux-freeform 6.2.1-beta.0 → 6.2.1
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.
|
@@ -150,7 +150,8 @@ validatorFns[NO_MORE_THAN_SIX_NUMBERS] = (value) => {
|
|
|
150
150
|
* https://stripe.com/en-ca/resources/more/how-to-use-the-luhn-algorithm-a-guide-in-applications-for-businesses#luhn-algorithm-formula
|
|
151
151
|
*/
|
|
152
152
|
|
|
153
|
-
function luhnValid(string) {
|
|
153
|
+
function luhnValid(string) {
|
|
154
|
+
if (!string) {
|
|
154
155
|
return false;
|
|
155
156
|
}
|
|
156
157
|
|
|
@@ -146,7 +146,8 @@ validatorFns[NO_MORE_THAN_SIX_NUMBERS] = (value) => {
|
|
|
146
146
|
* https://stripe.com/en-ca/resources/more/how-to-use-the-luhn-algorithm-a-guide-in-applications-for-businesses#luhn-algorithm-formula
|
|
147
147
|
*/
|
|
148
148
|
|
|
149
|
-
function luhnValid(string) {
|
|
149
|
+
function luhnValid(string) {
|
|
150
|
+
if (!string) {
|
|
150
151
|
return false;
|
|
151
152
|
}
|
|
152
153
|
|
|
@@ -152,7 +152,8 @@
|
|
|
152
152
|
* https://stripe.com/en-ca/resources/more/how-to-use-the-luhn-algorithm-a-guide-in-applications-for-businesses#luhn-algorithm-formula
|
|
153
153
|
*/
|
|
154
154
|
|
|
155
|
-
function luhnValid(string) {
|
|
155
|
+
function luhnValid(string) {
|
|
156
|
+
if (!string) {
|
|
156
157
|
return false;
|
|
157
158
|
}
|
|
158
159
|
|
package/package.json
CHANGED