Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
billing/remote_billing_auth: Fix TypeScript noUncheckedIndexedAccess errors.
Anders Kaseorgc2c2e0b9eadb
diff --git a/web/src/billing/remote_billing_auth.ts b/web/src/billing/remote_billing_auth.tsindex 7b25b9d953a..fe1355e7f41 100644--- a/web/src/billing/remote_billing_auth.ts+++ b/web/src/billing/remote_billing_auth.ts@@ -55,13 +55,10 @@ export function initialize(): void {},showErrors(error_map) {$("*[class$='-error']").hide();- for (const key in error_map) {- if (Object.prototype.hasOwnProperty.call(error_map, key)) {- const error = error_map[key];- const $error_element = $(`.${CSS.escape(key)}-error`);- $error_element.text(error);- $error_element.show();- }+ for (const [key, error] of Object.entries(error_map)) {+ const $error_element = $(`.${CSS.escape(key)}-error`);+ $error_element.text(error);+ $error_element.show();}},});