diff --git a/src/composables/useAuth.ts b/src/composables/useAuth.ts index 944e756..be80af2 100644 --- a/src/composables/useAuth.ts +++ b/src/composables/useAuth.ts @@ -152,18 +152,7 @@ export function useAuth() { } }) - // Get current user from API - async function getCurrentUser(): Promise { - try { - console.log('Getting current user from API...') - const user = await lnbitsAPI.getCurrentUser() - console.log('Current user from API:', user) - return user - } catch (error) { - console.error('Error getting current user:', error) - return null - } - } + return { // State diff --git a/src/lib/api/events.ts b/src/lib/api/events.ts index d9b1ec9..f1ca2ee 100644 --- a/src/lib/api/events.ts +++ b/src/lib/api/events.ts @@ -1,4 +1,4 @@ -import type { Event, EventsApiError, Ticket } from '../types/event' +import type { Event, Ticket } from '../types/event' import { config } from '@/lib/config' import { lnbitsAPI } from './lnbits' @@ -72,7 +72,7 @@ export async function purchaseTicket(eventId: string): Promise<{ payment_hash: s } } -export async function payInvoiceWithWallet(paymentRequest: string, walletId: string, adminKey: string): Promise<{ payment_hash: string; fee_msat: number; preimage: string }> { +export async function payInvoiceWithWallet(paymentRequest: string, _walletId: string, adminKey: string): Promise<{ payment_hash: string; fee_msat: number; preimage: string }> { try { const response = await fetch( `${API_BASE_URL}/api/v1/payments`,