Removed unsued data color vars and need to read from colors object now that colors are not independently in data.
This commit is contained in:
@@ -171,10 +171,6 @@ export default {
|
|||||||
components: { TextToast, Wine, ScanToVinmonopolet },
|
components: { TextToast, Wine, ScanToVinmonopolet },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
red: null,
|
|
||||||
blue: null,
|
|
||||||
green: null,
|
|
||||||
yellow: null,
|
|
||||||
payed: undefined,
|
payed: undefined,
|
||||||
winners: [],
|
winners: [],
|
||||||
wines: [],
|
wines: [],
|
||||||
@@ -314,10 +310,10 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
sendObject.purchase.bought =
|
sendObject.purchase.bought =
|
||||||
parseInt(this.blue) +
|
parseInt(colors.blue) +
|
||||||
parseInt(this.red) +
|
parseInt(colors.red) +
|
||||||
parseInt(this.green) +
|
parseInt(colors.green) +
|
||||||
parseInt(this.yellow);
|
parseInt(colors.yellow);
|
||||||
const stolen = sendObject.purchase.bought - parseInt(this.payed) / 10;
|
const stolen = sendObject.purchase.bought - parseInt(this.payed) / 10;
|
||||||
if (isNaN(stolen) || stolen == undefined) {
|
if (isNaN(stolen) || stolen == undefined) {
|
||||||
alert("Betalt må registreres");
|
alert("Betalt må registreres");
|
||||||
|
|||||||
Reference in New Issue
Block a user