Skip to content

Commit

Permalink
new logs in form profile
Browse files Browse the repository at this point in the history
  • Loading branch information
RachalCassity committed Dec 17, 2024
1 parent 2dfbb11 commit 392de03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/models/form_profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ def phone_object
home = vet360_contact_info&.home_phone
return home if home&.area_code && home.phone_number

if Flipper.enabled?(:remove_pciu, user)
# Track precense of home and mobile
Rails.logger.info("VAProfile Phone Object: Home? #{home.present?}, Mobile? #{mobile.present?}")
end

phone_struct = Struct.new(:area_code, :phone_number)

return phone_struct.new(pciu_us_phone.first(3), pciu_us_phone.last(7)) if pciu_us_phone&.length == 10
Expand Down

0 comments on commit 392de03

Please sign in to comment.