fix(Contact): fix issue with address parsing sentry #1866716154
This commit is contained in:
parent
d9f09065b4
commit
32d30be943
1 changed files with 7 additions and 3 deletions
|
@ -203,11 +203,15 @@ export default {
|
||||||
if (raw.length === 3) {
|
if (raw.length === 3) {
|
||||||
this.secondLine = raw[1]
|
this.secondLine = raw[1]
|
||||||
raw = raw[2].split('%postalsep%')
|
raw = raw[2].split('%postalsep%')
|
||||||
} else {
|
|
||||||
raw = raw[1].split('%postalsep%')
|
|
||||||
}
|
|
||||||
this.postalCode = raw[0]
|
this.postalCode = raw[0]
|
||||||
this.city = raw[1]
|
this.city = raw[1]
|
||||||
|
} else {
|
||||||
|
if (raw.length > 0) {
|
||||||
|
raw = raw[1].split('%postalsep%')
|
||||||
|
this.postalCode = raw[0]
|
||||||
|
this.city = raw[1]
|
||||||
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
// encode address
|
// encode address
|
||||||
let encoded = ''
|
let encoded = ''
|
||||||
|
|
Loading…
Reference in a new issue