fix(Contact): fix issue with address parsing sentry #1866716154

This commit is contained in:
Matthieu Bessat 2020-09-03 18:58:20 +02:00
parent d9f09065b4
commit 32d30be943

View file

@ -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 = ''