Skip to content

Commit

Permalink
Change to past tense to agree with other conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Caldwell committed Nov 3, 2020
1 parent 441b44c commit db8ccd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export function getMovedEntities(
)
// Do not track entries to or exits from 'other'
.filter((entityMovementDescriptor: EntityMovementDescriptor) => {
if (trackingEvent !== 'crossing') {
if (trackingEvent !== 'crossed') {
return trackingEvent === 'entered'
? entityMovementDescriptor.currLocation.shapeId !== OTHER_CATEGORY
: entityMovementDescriptor.prevLocation.shapeId !== OTHER_CATEGORY;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
export enum TrackingEvent {
entered = 'entered',
exited = 'exited',
crossing = 'crossing',
crossing = 'crossed',
}

export interface GeoThresholdAlertParams {
Expand Down

0 comments on commit db8ccd6

Please sign in to comment.