From f34857f5a81d6cb7dc6fa5cb384c561ef78aa8b6 Mon Sep 17 00:00:00 2001 From: KevinMidboe Date: Sat, 2 Jan 2021 14:05:47 +0100 Subject: [PATCH] If no tickets bought default 0 all colors. --- frontend/components/VirtualLotteryPage.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/frontend/components/VirtualLotteryPage.vue b/frontend/components/VirtualLotteryPage.vue index 6b60fc2..06d37ff 100644 --- a/frontend/components/VirtualLotteryPage.vue +++ b/frontend/components/VirtualLotteryPage.vue @@ -81,7 +81,12 @@ export default { socket: null, attendeesFetched: false, wasDisconnected: false, - ticketsBought: {} + ticketsBought: { + "red": 0, + "blue": 0, + "green": 0, + "yellow": 0 + } }; }, mounted() {