mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
billing/remote_billing_auth: Fix TypeScript noUncheckedIndexedAccess errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
@@ -55,13 +55,10 @@ export function initialize(): void {
|
|||||||
},
|
},
|
||||||
showErrors(error_map) {
|
showErrors(error_map) {
|
||||||
$("*[class$='-error']").hide();
|
$("*[class$='-error']").hide();
|
||||||
for (const key in error_map) {
|
for (const [key, error] of Object.entries(error_map)) {
|
||||||
if (Object.prototype.hasOwnProperty.call(error_map, key)) {
|
const $error_element = $(`.${CSS.escape(key)}-error`);
|
||||||
const error = error_map[key];
|
$error_element.text(error);
|
||||||
const $error_element = $(`.${CSS.escape(key)}-error`);
|
$error_element.show();
|
||||||
$error_element.text(error);
|
|
||||||
$error_element.show();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user