diff --git a/src/views/Delegate/Contact.vue b/src/views/Delegate/Contact.vue index 0f599d7..1ef9ce2 100644 --- a/src/views/Delegate/Contact.vue +++ b/src/views/Delegate/Contact.vue @@ -203,11 +203,15 @@ export default { if (raw.length === 3) { this.secondLine = raw[1] raw = raw[2].split('%postalsep%') + this.postalCode = raw[0] + this.city = raw[1] } else { - raw = raw[1].split('%postalsep%') + if (raw.length > 0) { + raw = raw[1].split('%postalsep%') + this.postalCode = raw[0] + this.city = raw[1] + } } - this.postalCode = raw[0] - this.city = raw[1] } else { // encode address let encoded = ''