-
Welcome to Gamba v2 👋
+
Welcome to POG COIN CARNIVAL!!!
- A fair, simple and decentralized casino on Solana.
+ A fair, simple and decentralized coinsino on Solana. Coming to Base soon.
-
+
diff --git a/src/sections/UserButton.tsx b/src/sections/UserButton.tsx
index ecc086148..1d24d1ea8 100644
--- a/src/sections/UserButton.tsx
+++ b/src/sections/UserButton.tsx
@@ -31,7 +31,7 @@ function UserModal() {
const revokeInvite = async () => {
try {
setRemoving(true)
- await referral.removeReferral()
+ await referral.removeInvite()
} finally {
setRemoving(false)
}
@@ -51,13 +51,13 @@ function UserModal() {
Share your link with new users to earn {(PLATFORM_REFERRAL_FEE * 100)}% every time they play on this platform.
- {PLATFORM_ALLOW_REFERRER_REMOVAL && referral.recipient && (
+ {PLATFORM_ALLOW_REFERRER_REMOVAL && (
)}
@@ -76,9 +76,19 @@ export function UserButton() {
const connect = () => {
if (wallet.wallet) {
- wallet.connect()
+ try {
+ wallet.connect().catch(error => {
+ console.error("Wallet connection error:", error);
+ // Try again after a short delay
+ setTimeout(() => {
+ wallet.connect().catch(e => console.error("Retry failed:", e));
+ }, 1000);
+ });
+ } catch (error) {
+ console.error("Wallet connection error:", error);
+ }
} else {
- walletModal.setVisible(true)
+ walletModal.setVisible(true);
}
}
@@ -93,8 +103,8 @@ export function UserButton() {
onClick={() => user.set({ userModal: true })}
>
-

- {truncateString(wallet.publicKey?.toBase58(), 3)}
+

+ {truncateString(wallet.publicKey?.toBase58() || '', 3)}