homeflowjs 0.13.33 → 0.13.34

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.
package/README.md CHANGED
@@ -70,4 +70,3 @@ This is a known issue with peer dependencies, see this comment and containing th
70
70
  ## Deploy
71
71
 
72
72
  To create a new version of HomeflowJS when merging to master, keep an eye on the Jenkins build, it pauses and waits for publish confirmation where you can enter the new version number and publish.
73
-
@@ -140,8 +140,10 @@ const IntroStep = ({
140
140
  type="text"
141
141
  value={search.postcode}
142
142
  onChange={(e) => {
143
- updateState('postcode', e.target.value.toUpperCase());
144
- addressLookup(e.target.value);
143
+ const { value } = e.target;
144
+
145
+ updateState('postcode', value?.toUpperCase());
146
+ if (value?.replace(/\s/g, '')?.length >= 4) addressLookup(value);
145
147
  }}
146
148
  placeholder="Enter full postcode (with a space)..."
147
149
  />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "homeflowjs",
3
- "version": "0.13.33",
3
+ "version": "0.13.34",
4
4
  "sideEffects": [
5
5
  "modal/**/*",
6
6
  "user/default-profile/**/*",