12 lines
309 B
TypeScript
12 lines
309 B
TypeScript
import { AufnahmeClient } from "#components/Ausweis/types.js";
|
|
import { AuditType, hidden } from "./hidden.js";
|
|
|
|
export function auditLeerStand(gebaeude: AufnahmeClient): boolean {
|
|
if (gebaeude.leerstand && !hidden.has(AuditType.LEER_STAND)) {
|
|
return (
|
|
(gebaeude.leerstand > 30)
|
|
);
|
|
}
|
|
|
|
return false
|
|
} |