@maktubbet/sdk 2.2.9 → 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.
@@ -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" });