From 548a1f4f764e64409b827c69a5791e1e09da270a Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Wed, 23 Oct 2024 06:27:17 +0000 Subject: [PATCH] Update content of files --- data/web/fragment.com/js/auction.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/data/web/fragment.com/js/auction.js b/data/web/fragment.com/js/auction.js index ae33165c51..8061023618 100644 --- a/data/web/fragment.com/js/auction.js +++ b/data/web/fragment.com/js/auction.js @@ -599,7 +599,6 @@ var Login = { var Wallet = { init: function(options) { Aj.globalState.tonConnectAuthAddress = options.address || false; - Aj.globalState.tonConnectLoggedIn = options.logged_in || false; Aj.globalState.tonConnectProof = options.ton_proof || ''; Aj.globalState.tonConnectVersion = options.version || 1; if (Aj.globalState.tonConnectVersion == 2) { @@ -718,19 +717,14 @@ var Wallet = { } }, eTonAuth: function(e) { + e.stopImmediatePropagation(); + e.preventDefault(); if (Aj.globalState.tonConnectVersion == 2) { var tonConnectUI = Aj.globalState.tonConnectUI; if (!tonConnectUI.connected) { - e.stopImmediatePropagation(); - e.preventDefault(); tonConnectUI.openModal(); } } else { - if (Aj.globalState.tonConnectLoggedIn) { - return true; - } - e.stopImmediatePropagation(); - e.preventDefault(); QR.showPopup({ request: { method: 'getTonAuthLink' @@ -2954,7 +2948,6 @@ var Stars = { $('.js-buy-stars-content', Aj.state.$starsBuyPopup).html(result.content); $('.js-buy-stars-button', Aj.state.$starsBuyPopup).html(result.button); Aj.state.$starsBuyPopup.toggleClass('iam-sender', result.myself); - Aj.state.$starsBuyPopup.toggleClass('bot-recipient', result.to_bot); Aj.state.starsPrice = result.amount; Aj.state.itemTitle = result.item_title; Aj.state.$starsBuyForm.field('id').value(result.req_id);