fix: cast querySelector result to HTMLElement for mollie mount
This commit is contained in:
@@ -60,7 +60,7 @@ export default function PaymentForm({ plan, interval, limit }: PaymentFormProps)
|
|||||||
]
|
]
|
||||||
|
|
||||||
for (const { type, selector } of fields) {
|
for (const { type, selector } of fields) {
|
||||||
const el = document.querySelector(selector)
|
const el = document.querySelector(selector) as HTMLElement | null
|
||||||
if (!el) {
|
if (!el) {
|
||||||
setMollieError(true)
|
setMollieError(true)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user