diff --git a/src/components/views/Home.vue b/src/components/views/Home.vue index 9a850f8..5b46a8f 100644 --- a/src/components/views/Home.vue +++ b/src/components/views/Home.vue @@ -60,12 +60,20 @@ const viewTransaction = () => { } const incrementAmount = () => { + if(!store.telegram.walletAccount) { + store.telegram.tonConnectUI.openModal(); + } + if (amount.value + 0.1 <= (max_bet.value)) { amount.value = parseFloat((amount.value + 0.1).toFixed(1)) } } const decrementAmount = () => { + if(!store.telegram.walletAccount) { + store.telegram.tonConnectUI.openModal(); + } + if (amount.value - 0.1 >= (min_bet.value)) { amount.value = parseFloat((amount.value - 0.1).toFixed(1)) } @@ -98,7 +106,7 @@ onMounted(async () => {