fix: use session provider whenever next auth is included

This commit is contained in:
veganbeef
2025-07-16 13:12:48 -07:00
parent aac3a739cd
commit 86b79e7f3f
2 changed files with 3 additions and 3 deletions

View File

@@ -25,8 +25,8 @@ export function Providers({
const solanaEndpoint =
process.env.SOLANA_RPC_ENDPOINT || 'https://solana-rpc.publicnode.com';
// Only wrap with SessionProvider if session is provided
if (session) {
// Only wrap with SessionProvider if next auth is used
if (process.env.SPONSOR_SIGNER === 'true' || process.env.SEED_PHRASE) {
return (
<SessionProvider session={session}>
<WagmiProvider>