Fix an issue when no offer were returned for a country

This commit is contained in:
Lucas Verney 2020-12-12 12:38:20 +01:00
parent fd9119869a
commit 84b32579ef

View File

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