Skip to content

Commit

Permalink
fix: error dialog should not be open by default (#2580)
Browse files Browse the repository at this point in the history
  • Loading branch information
tm-ruxandra authored Dec 6, 2024
1 parent d9bb802 commit 47313a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev-client/src/components/dialogs/ErrorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const ErrorDialog = forwardRef<
React.PropsWithChildren<ErrorDialogProps>
>(({headline, children}, forwardedRef) => {
const {t} = useTranslation();
const [isOpen, setIsOpen] = useState(true);
const [isOpen, setIsOpen] = useState(false);
const onOpen = useCallback(() => setIsOpen(true), [setIsOpen]);
const onClose = useCallback(() => setIsOpen(false), [setIsOpen]);
const modalHandle = useMemo(() => ({onClose, onOpen}), [onOpen, onClose]);
Expand Down

0 comments on commit 47313a3

Please sign in to comment.