* Hides the element by ID. * @param {string} elementId The ID of the element.
(elementId: string)
| 582 | * @param {string} elementId The ID of the element. |
| 583 | */ |
| 584 | function hideElement(elementId: string) { |
| 585 | const element = document.getElementById(elementId); |
| 586 | if (element) { |
| 587 | element.style.display = 'none'; |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | /** |
| 592 | * Alerts the error message in the toast and logs the error in the console. |