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
1 changed files with 1 additions and 0 deletions

View File

@ -288,6 +288,7 @@ var app = new Vue({
.then(response => response.json())
.then(response => {
if (!response.offers) {
this.offers[locale] = [];
return;
}
this.offers[locale] = response.offers