diff options
Diffstat (limited to 'src/client/elm/Model/User.elm')
-rw-r--r-- | src/client/elm/Model/User.elm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/elm/Model/User.elm b/src/client/elm/Model/User.elm index 1412913..aac5dd5 100644 --- a/src/client/elm/Model/User.elm +++ b/src/client/elm/Model/User.elm @@ -29,15 +29,15 @@ userWithIdDecoder = ("id" := userIdDecoder) userDecoder +userIdDecoder : Json.Decoder UserId +userIdDecoder = Json.int + userDecoder : Json.Decoder User userDecoder = Json.object2 User ("name" := Json.string) ("email" := Json.string) -userIdDecoder : Json.Decoder UserId -userIdDecoder = Json.int - getUserName : Users -> UserId -> Maybe String getUserName users userId = Dict.get userId users |