Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions components/one/net-worth-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 "…";
Expand Down
6 changes: 4 additions & 2 deletions lib/payments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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") {
Expand Down
2 changes: 0 additions & 2 deletions lib/spl-private-balance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ export function clearStoredPrivateAuthToken(pubkeyBase58: string) {
export async function fetchSplChallenge(pubkeyBase58: string): Promise<string> {
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) {
Expand All @@ -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) {
Expand Down
Loading