@maktubbet/sdk 2.2.8 → 2.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blackjack/index.cjs +2 -3
- package/dist/blackjack/index.cjs.map +1 -1
- package/dist/blackjack/index.js +2 -3
- package/dist/blackjack/index.js.map +1 -1
- package/dist/index.cjs +2 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/vanilla.global.js +2 -3
- package/dist/vanilla.global.js.map +1 -1
- package/dist/vanilla.js +2 -3
- package/dist/vanilla.js.map +1 -1
- package/package.json +1 -1
package/dist/blackjack/index.cjs
CHANGED
|
@@ -9559,7 +9559,6 @@ async function sendDemoBlackjackAction(action) {
|
|
|
9559
9559
|
if (state.player.length > 1 || state.player[0].cards.length !== 2) {
|
|
9560
9560
|
break;
|
|
9561
9561
|
}
|
|
9562
|
-
demoBalance -= state.amount;
|
|
9563
9562
|
state.amount *= 2;
|
|
9564
9563
|
const [card1, card2] = state.player[0].cards;
|
|
9565
9564
|
const newCard1 = drawCard(state);
|
|
@@ -15992,7 +15991,7 @@ function BlackjackGameInner() {
|
|
|
15992
15991
|
setIsFetching(false);
|
|
15993
15992
|
};
|
|
15994
15993
|
const handleAction = async (action) => {
|
|
15995
|
-
const extraDebit = action === "double" ? amount : action === "insurance" ? amount / 2 : 0;
|
|
15994
|
+
const extraDebit = action === "double" || action === "split" ? amount : action === "insurance" ? amount / 2 : 0;
|
|
15996
15995
|
if (extraDebit > 0 && extraDebit > balance) {
|
|
15997
15996
|
if (!toast2.isVisible("error-toast")) {
|
|
15998
15997
|
toast2.create({ id: "error-toast", title: "Insufficient balance", type: "error" });
|
|
@@ -16061,7 +16060,7 @@ function BlackjackGameInner() {
|
|
|
16061
16060
|
});
|
|
16062
16061
|
}
|
|
16063
16062
|
setIsActive(false);
|
|
16064
|
-
setBalance(balance -
|
|
16063
|
+
setBalance(balance - extraDebit + data.payout);
|
|
16065
16064
|
addStat({
|
|
16066
16065
|
amount: data.amount,
|
|
16067
16066
|
payoutMultiplier: data.payoutMultiplier,
|