diff --git a/src/components/VinlottisPage.vue b/src/components/VinlottisPage.vue
index 85e40ee..c786920 100644
--- a/src/components/VinlottisPage.vue
+++ b/src/components/VinlottisPage.vue
@@ -10,7 +10,7 @@
-
+
Lurer du på dagens fangst?
Se her
@@ -56,10 +56,20 @@ export default {
},
data() {
return {
- hardStart: false
+ hardStart: false,
+ todayExists: false
};
},
mounted() {
+ fetch("/api/wines/prelottery")
+ .then(wines => wines.json())
+ .then(wines => {
+ if (wines.length > 0) {
+ this.todayExists = true;
+ } else {
+ this.todayExists = false;
+ }
+ });
if (window.location.hostname == "localhost") {
return;
}