@bpost/bp-address-auto-complete-by-component 1.1.1 → 1.1.2

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/VERSION.md CHANGED
@@ -6,6 +6,12 @@ This is a pure angular library and can be imported as a module inside an angular
6
6
  This library is not suited for a pure javascript application.
7
7
  For any pure JS application, another version of this component exists in our repository.
8
8
 
9
+ ## Version 1.1.2
10
+ correcting prefilling bug
11
+
12
+ ## Version 1.1.1
13
+ correcting a small bug
14
+
9
15
  ## Version 1.1.0
10
16
  Correction of small bug.
11
17
  Add a customer demo application.
@@ -4675,7 +4675,9 @@
4675
4675
  if (this.showDebugMessageToConsole) {
4676
4676
  console.log('notifyAddressComplete', this.selectedAddress, 'nis9InResponse:' + this.nis9InResponse, typeof this.nis9InResponse);
4677
4677
  }
4678
- if ((this.nis9InResponse === true || '' + this.nis9InResponse === 'true') && this.selectedAddress.hasOwnProperty('latitude') && this.selectedAddress.hasOwnProperty('longitude')) {
4678
+ if ((this.nis9InResponse === true || '' + this.nis9InResponse === 'true')
4679
+ && this.selectedAddress !== undefined && this.selectedAddress !== null
4680
+ && this.selectedAddress.hasOwnProperty('latitude') && this.selectedAddress.hasOwnProperty('longitude')) {
4679
4681
  var latitude = this.selectedAddress.latitude;
4680
4682
  var longitude = this.selectedAddress.longitude;
4681
4683
  if (this.showDebugMessageToConsole)