Skip to content

Commit

Permalink
Updated team contact fields to reflect API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rapind committed Sep 3, 2024
1 parent a2b38fd commit 6703262
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion prod.min.js

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/Results.elm
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ type alias Team =
, affiliation : Maybe String
, location : Maybe String
, contactName : Maybe String
, contactEmail : Maybe String
, contactPhone : Maybe String
, email : Maybe String
, phone : Maybe String
, imageUrl : Maybe String
, lineup : List TeamCurler
}
Expand Down Expand Up @@ -593,8 +593,8 @@ decodeTeam =
|> optional "affiliation" (nullable string) Nothing
|> optional "location" (nullable string) Nothing
|> optional "contact_name" (nullable string) Nothing
|> optional "contact_email" (nullable string) Nothing
|> optional "contact_phone" (nullable string) Nothing
|> optional "email" (nullable string) Nothing
|> optional "phone" (nullable string) Nothing
|> optional "image_url" (nullable string) Nothing
|> optional "lineup" (list decodeTeamCurler) []

Expand Down Expand Up @@ -4280,7 +4280,7 @@ viewTeam theme translations flags event team =
viewTeamInfo =
let
hasTeamContactInfo =
[ team.contactName, team.contactEmail, team.contactPhone ]
[ team.contactName, team.email, team.phone ]
|> List.filterMap identity
|> List.isEmpty
|> not
Expand All @@ -4296,8 +4296,8 @@ viewTeam theme translations flags event team =
El.table [ El.width El.fill ]
{ data =
[ { label = "contact_name", data = team.contactName }
, { label = "contact_email", data = team.contactEmail }
, { label = "contact_phone", data = team.contactPhone }
, { label = "email", data = team.email }
, { label = "phone", data = team.phone }
]
, columns =
[ { header = El.none
Expand Down

0 comments on commit 6703262

Please sign in to comment.