Dealer
({{ dealerScore }})
-
-
Hand ({{ handScore === 21 && usersHand.count < 2 ? 'BlackJack' : handScore > 21 ? 'Plus! ' + handScore : handScore }})
+
+
Hand (Points: {{ handScore === 21 && usersHand.count < 2 ? 'BlackJack' : handScore > 21 ? 'Plus! ' + handScore : handScore }})
+
+
+
diff --git a/js/app.js b/js/app.js
index ed7ed9e..6e90a47 100644
--- a/js/app.js
+++ b/js/app.js
@@ -1,6 +1,7 @@
let app = new Vue({
el: '#root',
data: {
+ initiated: false,
roundActive: false,
cardBack: 'img/cardBack_red5.png',
cards: [],
@@ -131,6 +132,7 @@ let app = new Vue({
},
startRound() {
+ this.initiated = true;
this.endRound();
this.roundActive = true;
@@ -198,6 +200,7 @@ let app = new Vue({
vue.bank = Number(response.data.value);
vue.username = response.data.name;
vue.avatar = '/storage/avatars/' + response.data.avatar;
+ vue.bankIsActive = true;
vue.$forceUpdate;
if (Number(vue.bank) <= Number(0)) {
@@ -249,7 +252,7 @@ let app = new Vue({
axios.post('/bank/store', {
value: vue.bank,
- app: 'Farm',
+ app: 'BlackJack',
description: 'Deposit',
amount: toBankSave
}).then(function (response) {
@@ -285,7 +288,7 @@ let app = new Vue({
axios.post('/bank/store', {
value: vue.bank,
- app: 'Farm',
+ app: 'BlackJack',
description: 'Withdrawal',
amount: toMoneySave
}).then(function (response) {