diff --git a/src/context/DialogContext.tsx b/src/context/DialogContext.tsx index 23eac14..752f636 100644 --- a/src/context/DialogContext.tsx +++ b/src/context/DialogContext.tsx @@ -66,7 +66,7 @@ export function useDialog(): DialogContextType { function Dialog({ id, headline, content, actions, close }: DialogProps) { const setTimeout = useTimeout(); - function handleClose(dId: string) { + function handleClose(dId) { const dialog = document.getElementById(dId) as HTMLDialogElement; setTimeout(() => { dialog?.close();