fix: cast querySelector result to HTMLElement for mollie mount

This commit is contained in:
Usman Baig
2026-03-26 22:04:55 +01:00
parent 22dddc6b6f
commit e089640fb9

View File

@@ -60,7 +60,7 @@ export default function PaymentForm({ plan, interval, limit }: PaymentFormProps)
]
for (const { type, selector } of fields) {
const el = document.querySelector(selector)
const el = document.querySelector(selector) as HTMLElement | null
if (!el) {
setMollieError(true)
return