From 5dd26753eab18f04fb027ab7365d436dc6b28e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Midb=C3=B8e?= Date: Fri, 20 Mar 2020 17:33:44 +0100 Subject: [PATCH] Removed unsued data color vars and need to read from colors object now that colors are not independently in data. --- src/components/RegisterPage.vue | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/components/RegisterPage.vue b/src/components/RegisterPage.vue index e028edb..262abed 100644 --- a/src/components/RegisterPage.vue +++ b/src/components/RegisterPage.vue @@ -171,10 +171,6 @@ export default { components: { TextToast, Wine, ScanToVinmonopolet }, data() { return { - red: null, - blue: null, - green: null, - yellow: null, payed: undefined, winners: [], wines: [], @@ -314,10 +310,10 @@ export default { } sendObject.purchase.bought = - parseInt(this.blue) + - parseInt(this.red) + - parseInt(this.green) + - parseInt(this.yellow); + parseInt(colors.blue) + + parseInt(colors.red) + + parseInt(colors.green) + + parseInt(colors.yellow); const stolen = sendObject.purchase.bought - parseInt(this.payed) / 10; if (isNaN(stolen) || stolen == undefined) { alert("Betalt må registreres");