mirror of https://github.com/zulip/zulip.git
billing/remote_billing_auth: Fix TypeScript noUncheckedIndexedAccess errors.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
01677db59e
commit
c2c2e0b9ea
|
@ -55,14 +55,11 @@ 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];
|
||||
for (const [key, error] of Object.entries(error_map)) {
|
||||
const $error_element = $(`.${CSS.escape(key)}-error`);
|
||||
$error_element.text(error);
|
||||
$error_element.show();
|
||||
}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue