Refactor: Simplify isThereModal function

This commit is contained in:
igorrCarvalho 2024-06-09 20:32:40 -03:00
commit 5028f80a63

View file

@ -410,6 +410,5 @@ export function extractColumnsFromRows(
export function isThereModal(): boolean { export function isThereModal(): boolean {
const modal = document.body.getElementsByClassName(MODAL_CLASSES); const modal = document.body.getElementsByClassName(MODAL_CLASSES);
if (modal.length > 0) return true; return modal.length > 0;
return false;
} }