refactor: Simplify authentication and wallet logic by removing debug logs
- Eliminate console logging from the authentication initialization and login processes in useAuth.ts for cleaner code. - Streamline wallet computation in useTicketPurchase.ts by removing unnecessary logging while maintaining functionality. - Refactor LNBits API methods to reduce logging, enhancing code clarity and maintainability.
This commit is contained in:
parent
e1667461be
commit
cd0016744b
3 changed files with 6 additions and 54 deletions
|
|
@ -30,25 +30,10 @@ export function useTicketPurchase() {
|
|||
}
|
||||
})
|
||||
|
||||
const userWallets = computed(() => {
|
||||
const wallets = currentUser.value?.wallets || []
|
||||
console.log('User wallets computed:', {
|
||||
currentUser: currentUser.value,
|
||||
wallets: wallets,
|
||||
walletCount: wallets.length,
|
||||
hasWallets: wallets.length > 0
|
||||
})
|
||||
return wallets
|
||||
})
|
||||
const hasWalletWithBalance = computed(() => {
|
||||
const hasBalance = userWallets.value.some((wallet: any) => wallet.balance_msat > 0)
|
||||
console.log('Wallet balance check:', {
|
||||
wallets: userWallets.value,
|
||||
hasBalance: hasBalance,
|
||||
walletBalances: userWallets.value.map((w: any) => ({ id: w.id, balance: w.balance_msat }))
|
||||
})
|
||||
return hasBalance
|
||||
})
|
||||
const userWallets = computed(() => currentUser.value?.wallets || [])
|
||||
const hasWalletWithBalance = computed(() =>
|
||||
userWallets.value.some((wallet: any) => wallet.balance_msat > 0)
|
||||
)
|
||||
|
||||
// Generate QR code for Lightning payment
|
||||
async function generateQRCode(bolt11: string) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue