Commit b6ff8b3 1 parent 8b39dd5 commit b6ff8b3 Copy full SHA for b6ff8b3
File tree 1 file changed +10
-2
lines changed
1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -60,12 +60,20 @@ const viewTransaction = () => {
60
60
}
61
61
62
62
const incrementAmount = () => {
63
+ if (! store .telegram .walletAccount ) {
64
+ store .telegram .tonConnectUI .openModal ();
65
+ }
66
+
63
67
if (amount .value + 0.1 <= (max_bet .value )) {
64
68
amount .value = parseFloat ((amount .value + 0.1 ).toFixed (1 ))
65
69
}
66
70
}
67
71
68
72
const decrementAmount = () => {
73
+ if (! store .telegram .walletAccount ) {
74
+ store .telegram .tonConnectUI .openModal ();
75
+ }
76
+
69
77
if (amount .value - 0.1 >= (min_bet .value )) {
70
78
amount .value = parseFloat ((amount .value - 0.1 ).toFixed (1 ))
71
79
}
@@ -98,7 +106,7 @@ onMounted(async () => {
98
106
<template>
99
107
<div class="text-center flex flex-col h-full">
100
108
<div class="flex-1">
101
- <div class="text-center text-3xl uppercase p-5 ">
109
+ <div class="text-center text-3xl uppercase p-1 ">
102
110
<button id="ton-connect-button" type="button"></button>
103
111
</div>
104
112
<div class="flex flex-col justify-center content-center">
@@ -107,7 +115,7 @@ onMounted(async () => {
107
115
<div id="front" @click="playGame()"><img src="/icon.png" class="pulse h-[30vh]"></div>
108
116
</div>
109
117
</div>
110
- <div class="mt-6 ">
118
+ <div class="mt-1 ">
111
119
<form class="max-w-xs mx-auto">
112
120
<label for="quantity-input" class="block mb-2 text-sm font-medium uppercase text-white">Your bet</label>
113
121
<div class="flex justify-center">
You can’t perform that action at this time.
0 commit comments