feat: allow multiple images

This commit is contained in:
Tiago Vasconcelos 2023-03-17 09:50:29 +00:00
parent f9bfc26d92
commit 2605f43cdd

View file

@ -226,7 +226,7 @@ const market = async () => {
let stall = this.stalls.find(s => s.id == obj.stall_id) let stall = this.stalls.find(s => s.id == obj.stall_id)
if (!stall) return if (!stall) return
obj.stallName = stall.name obj.stallName = stall.name
obj.images = [obj.image] obj.images = obj.images || [obj.image]
if (obj.currency != 'sat') { if (obj.currency != 'sat') {
obj.formatedPrice = this.getAmountFormated( obj.formatedPrice = this.getAmountFormated(
obj.price, obj.price,