Skip to content

Commit

Permalink
refactor(analytics): update getting eligibility_types
Browse files Browse the repository at this point in the history
  • Loading branch information
lalver1 committed Aug 14, 2024
1 parent cdac347 commit 7c65723
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benefits/core/analytics.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import requests

from benefits import VERSION
from benefits.core.models import EligibilityType
from benefits.core.models import EnrollmentFlow
from . import session


Expand Down Expand Up @@ -48,7 +48,7 @@ def __init__(self, request, event_type, **kwargs):
flow = session.flow(request)
verifier_name = flow.name if flow else None
eligibility_types = session.eligibility(request)
eligibility_types = EligibilityType.get_names(eligibility_types) if eligibility_types else None
eligibility_types = EnrollmentFlow.get_names(eligibility_types) if eligibility_types else None

self.update_event_properties(
path=request.path,
Expand Down

0 comments on commit 7c65723

Please sign in to comment.