Reset state on dialog close in ErrorDialog component

This commit is contained in:
2025-07-11 19:33:27 +02:00
parent c99e09056c
commit 644d907b45

View File

@@ -92,7 +92,10 @@ interface ErrorDialogProps {
function ErrorDialog({error, onReset, open}: ErrorDialogProps) {
return (
<Dialog open={open} onOpenChange={() => {
<Dialog open={open} onOpenChange={(isOpen) => {
if (!isOpen) {
onReset();
}
}}>
<DialogContent className="sm:max-w-md">
<DialogHeader>