fix: shipping zones label

This commit is contained in:
Vlad Stan 2023-03-02 13:58:49 +02:00
parent f95db75495
commit 6d8488d2c3

View file

@ -35,16 +35,20 @@ async function stallDetails(path) {
this.inkey
)
this.stall = data
this.stall.shipping_zones.forEach(
z =>
(z.label = z.name
? `${z.name} (${z.countries.join(', ')})`
: z.countries.join(', '))
)
console.log('### this.stall', this.stall)
} catch (error) {
LNbits.utils.notifyApiError(error)
}
}
},
created: async function () {
await this.getStall()
console.log('### this.zoneOptions', this.zoneOptions)
}
})
}