fix: simplify slideshow to titles only, catch mollie unmount errors

This commit is contained in:
Usman Baig
2026-03-26 23:18:58 +01:00
parent e5ac1893dc
commit 7c55e5f763
2 changed files with 11 additions and 70 deletions

View File

@@ -98,7 +98,9 @@ export default function PaymentForm({ plan, interval, limit }: PaymentFormProps)
// Cleanup Mollie components on unmount
useEffect(() => {
return () => {
Object.values(componentsRef.current).forEach((c) => c?.unmount())
Object.values(componentsRef.current).forEach((c) => {
try { c?.unmount() } catch { /* DOM already removed */ }
})
}
}, [])