fix: use production mode for Enable Banking bank selector

BankSelector defaulted to sandbox=true. Now reads
NEXT_PUBLIC_ENABLE_BANKING_SANDBOX env var, defaulting to false
(production mode) when not set.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-03-04 21:05:38 +01:00
parent 2368df5f5e
commit 17eecfdb71
@@ -26,7 +26,7 @@ export function BankSelector({
isLoading = false,
className,
country = 'SE',
sandbox = true, // Default to sandbox for development
sandbox = process.env.NEXT_PUBLIC_ENABLE_BANKING_SANDBOX === 'true',
}: BankSelectorProps) {
const widgetRef = useRef<HTMLElement | null>(null)
const [scriptReady, setScriptReady] = useState(false)