Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Yusef Almamari committed Sep 5, 2024
1 parent a43cb95 commit 4938209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/context/DialogContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 4938209

Please sign in to comment.