- {{ soldOutConcerts }} {{ $t('concert.concertSoldOut') }}
+
+ {{ concertStore.concerts.reduce((counter, obj) => {
+ if (obj.inStock == 0) {
+ counter += 1
+ }
+
+ return counter
+ }, 0) }} {{ $t('concert.concertSoldOut') }}
@@ -88,6 +91,18 @@ concertStore.getConcerts()
{{ locationStore.locations.length }} {{ $t('location.location', 2) }}
+
+ {{
+ locationStore.locations.reduce((city, obj) => {
+ city[obj.city.name] =
+ city[obj.city.name] === undefined ? city.push(obj.city.name) : city[obj.city.name] += 1
+
+ return city
+ }, []).length
+ }}
+ {{ $t('location.city', 2) }}
+
+