diff --git a/components/one/net-worth-panel.tsx b/components/one/net-worth-panel.tsx index 6910966..10f940c 100644 --- a/components/one/net-worth-panel.tsx +++ b/components/one/net-worth-panel.tsx @@ -147,9 +147,6 @@ export function NetWorthPanel() { return null; } - // TEMP: hide the authenticate card. Delete this line to restore it. - if (needsAuthOverlay) return null; - const balanceLabel = (mint: string, decimals: number) => { if (!authToken) return "—"; if (balanceLoading) return "…"; diff --git a/lib/payments.ts b/lib/payments.ts index 299d181..9490d8d 100644 --- a/lib/payments.ts +++ b/lib/payments.ts @@ -46,7 +46,9 @@ export const PAYMENTS_API_BASE_URL = ( configuredPaymentsApiBaseUrl || DEFAULT_PAYMENTS_API_BASE_URL ).replace(/\/+$/, ""); -export const PAYMENTS_CLUSTER = normalizePaymentsCluster(configuredPaymentsCluster); +export const PAYMENTS_CLUSTER = normalizePaymentsCluster( + configuredPaymentsCluster, +); export const PAYMENTS_DEFAULT_USDC_MINT = configuredPaymentsTestUsdcMint || USDC_MINT; @@ -69,7 +71,7 @@ export function getPaymentsTimeoutSignal(timeoutMs = 15_000) { export function getPaymentsExplorerTransactionUrl(signature: string) { const explorerUrl = new URL( `/tx/${encodeURIComponent(signature)}`, - "https://explorer.solana.com" + "https://explorer.solana.com", ); if (PAYMENTS_CLUSTER === "devnet" || PAYMENTS_CLUSTER === "testnet") { diff --git a/lib/spl-private-balance.ts b/lib/spl-private-balance.ts index 9a919e4..9e8c94c 100644 --- a/lib/spl-private-balance.ts +++ b/lib/spl-private-balance.ts @@ -22,7 +22,6 @@ export function clearStoredPrivateAuthToken(pubkeyBase58: string) { export async function fetchSplChallenge(pubkeyBase58: string): Promise { const params = new URLSearchParams({ pubkey: pubkeyBase58, - mock: process.env.NEXT_PUBLIC_MOCK_TEE ?? "false", }); const res = await fetch(getPaymentsApiUrl(`/v1/spl/challenge?${params}`)); if (!res.ok) { @@ -47,7 +46,6 @@ export async function loginSplPrivate(params: { challenge: params.challenge, signature: params.signature, cluster: PAYMENTS_CLUSTER, - mock: process.env.NEXT_PUBLIC_MOCK_TEE === "true", }), }); if (!res.ok) {