@progressive-development/pd-contact 0.1.68 → 0.1.69

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/PdContact.js +5 -0
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Progressive Development Contact component",
4
4
  "license": "SEE LICENSE IN LICENSE",
5
5
  "author": "PD Progressive Development",
6
- "version": "0.1.68",
6
+ "version": "0.1.69",
7
7
  "main": "index.js",
8
8
  "module": "index.js",
9
9
  "scripts": {
package/src/PdContact.js CHANGED
@@ -369,6 +369,11 @@ function transformPhone(phone, country) {
369
369
  }
370
370
 
371
371
  _renderViewContact() {
372
+
373
+ if(!this.contact) {
374
+ return html`<p>Contact undefined</p>`;
375
+ }
376
+
372
377
  const trPhoneNr = transformPhone(this.contact.phone1, this.contact.country || "be");
373
378
  return html`
374
379
  <address>