jason-react-form
Advanced tools
Comparing version 3.4.0 to 3.5.0
{ | ||
"main.js": "/static/js/main.js", | ||
"index.html": "/index.html", | ||
"precache-manifest.755c030512739e94e3e291cacd4f84ec.js": "/precache-manifest.755c030512739e94e3e291cacd4f84ec.js", | ||
"precache-manifest.a6bc270ccdd9e44084f390e1ee7cb284.js": "/precache-manifest.a6bc270ccdd9e44084f390e1ee7cb284.js", | ||
"service-worker.js": "/service-worker.js" | ||
} |
@@ -17,3 +17,3 @@ /** | ||
importScripts( | ||
"/precache-manifest.755c030512739e94e3e291cacd4f84ec.js" | ||
"/precache-manifest.a6bc270ccdd9e44084f390e1ee7cb284.js" | ||
); | ||
@@ -20,0 +20,0 @@ |
{ | ||
"name": "jason-react-form", | ||
"version": "3.4.0", | ||
"version": "3.5.0", | ||
"main": "build/static/js/main.js", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -141,3 +141,3 @@ import React from 'react'; | ||
expect(errorCallback).toHaveBeenCalledWith({ ...component.instance().state, error: { data: {} } }); | ||
expect(component.instance().onZipcodeError).toHaveBeenCalledWith('04707060'); | ||
expect(component.instance().onZipcodeError).toHaveBeenCalled(); | ||
}); | ||
@@ -144,0 +144,0 @@ }); |
@@ -97,3 +97,3 @@ import axios from 'axios'; | ||
} catch (error) { | ||
this.onZipcodeError(zipcode); | ||
this.onZipcodeError(); | ||
@@ -118,6 +118,9 @@ errorCallback({ ...this.state, error }); | ||
onZipcodeError() { | ||
const { value, zipcodeInvalid } = this.state; | ||
this.setState({ fullAddress: '', fetching: false, zipcodeInvalid: true }); | ||
this.props.onFieldBlur({ ...this.props, fetchCompleted: false, value: zipcodeInvalid ? '' : value }); | ||
this.props.onFieldBlur({ | ||
...this.props, | ||
fetchCompleted: false, | ||
value: '', | ||
}); | ||
} | ||
@@ -124,0 +127,0 @@ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4721
472287