Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix @typescript-eslint/prefer-optional-chain.
Anders Kaseorg01359204635d
diff --git a/web/e2e-tests/lib/common.ts b/web/e2e-tests/lib/common.tsindex 070ef01f7ae..f593f20927e 100644--- a/web/e2e-tests/lib/common.ts+++ b/web/e2e-tests/lib/common.ts@@ -359,11 +359,7 @@ export async function wait_for_fully_processed_message(page: Page, content: strire-rendered based on server info?*/const last_msg = zulip_test.current_msg_list?.last();- if (- last_msg === undefined ||- last_msg.raw_content !== content ||- last_msg.locally_echoed- ) {+ if (last_msg?.raw_content !== content || last_msg.locally_echoed) {return false;}diff --git a/web/src/vdom.ts b/web/src/vdom.tsindex 263bfbd21a3..912e8091e41 100644--- a/web/src/vdom.ts+++ b/web/src/vdom.ts@@ -30,7 +30,7 @@ export function eq_array<T>(return true;}- if (a === undefined || b === undefined || a.length !== b.length) {+ if (a === undefined || a.length !== b?.length) {return false;}