Update KlimaFaktoren.ts
This commit is contained in:
@@ -11,11 +11,13 @@ export async function auditKlimaFaktoren(ausweis: VerbrauchsausweisWohnenClient,
|
||||
}
|
||||
|
||||
if (ausweis.startdatum && gebaeude.plz && ausweis.verbrauch_1) {
|
||||
const response = await getKlimafaktoren(ausweis.startdatum, gebaeude.plz);
|
||||
if (!response) {
|
||||
return true;
|
||||
}
|
||||
try {
|
||||
const response = await getKlimafaktoren(ausweis.startdatum, gebaeude.plz);
|
||||
return true; // Alle Klimfaktoren konnten abgefragt werden.
|
||||
} catch (e) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user