Skip to content

Commit

Permalink
fix: do not send any mock exposure data when leadTime > 3 months
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Oct 14, 2024
1 parent 7c495fb commit 7f269dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion services/API-service/src/scripts/scripts.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ export class ScriptsService {
triggered
) {
if (Number(activeLeadTime.split('-')[0]) > 3) {
copyOfExposureUnit.forEach((area) => (area.amount = 0));
copyOfExposureUnit = [];
// Hard-code lead-times of more then 3 months to non-trigger
} else if (eventRegion !== this.nationalDroughtRegion) {
// Hard-code that only areas of right region are triggered per selected leadtime
Expand Down

0 comments on commit 7f269dd

Please sign in to comment.