refactor: add typesafety to TaskContext

This commit is contained in:
Elian Doran
2025-09-13 13:44:23 +03:00
parent 777d5ab3b7
commit 9c8b0611ea
21 changed files with 111 additions and 75 deletions

View File

@@ -111,7 +111,7 @@ ws.subscribeToMessages(async (message) => {
return;
}
const isProtecting = message.data.protect;
const isProtecting = message.data?.protect;
const title = isProtecting ? t("protected_session.protecting-title") : t("protected_session.unprotecting-title");
if (message.type === "taskError") {