Fix an issue when no offer were returned for a country
This commit is contained in:
parent
fd9119869a
commit
84b32579ef
@ -288,6 +288,7 @@ var app = new Vue({
|
|||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(response => {
|
.then(response => {
|
||||||
if (!response.offers) {
|
if (!response.offers) {
|
||||||
|
this.offers[locale] = [];
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.offers[locale] = response.offers
|
this.offers[locale] = response.offers
|
||||||
|
Loading…
Reference in New Issue
Block a user