From 9491559d7dc3fc2aac26365b793ac4e2f8bb8653 Mon Sep 17 00:00:00 2001 From: ramvignesh-b Date: Thu, 16 Apr 2026 04:29:36 +0530 Subject: [PATCH] feat: fix null pointer handling in log modals --- frontend/src/pages/Editor.tsx | 1 + frontend/src/pages/Reader.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/Editor.tsx b/frontend/src/pages/Editor.tsx index 0f6b8f2..e3e549c 100644 --- a/frontend/src/pages/Editor.tsx +++ b/frontend/src/pages/Editor.tsx @@ -309,6 +309,7 @@ export default function Editor() { onClose={() => setDecryptionStatus({ status: "RESET", message: "", log: "" }) } + isOpen={decryptionStatus.status !== "RESET"} /> {isInitialLoading && ( diff --git a/frontend/src/pages/Reader.tsx b/frontend/src/pages/Reader.tsx index 67a104d..1e28e74 100644 --- a/frontend/src/pages/Reader.tsx +++ b/frontend/src/pages/Reader.tsx @@ -183,8 +183,8 @@ export default function Reader() { setWarning(null)} - message={warning?.message} - log={warning?.log} + message={warning?.message || ""} + log={warning?.log || ""} status="WARN" />