Skip to content

Commit

Permalink
Do not parse the geodata if there is none (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkst-pieter authored Dec 11, 2024
1 parent 1577f62 commit 0b41495
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frontend_vue/src/utils/incidentAlertService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ function locationValue(
}

function parseGeoInfo(hitAlert: Record<string, any>) {
if (hitAlert.geo_info == null) return null;
if (isCreditCardtoken(hitAlert.token_type)) return null;

if (!hitAlert.geo_info.bogon) {
Expand Down

0 comments on commit 0b41495

Please sign in to comment.