Skip to content

Commit

Permalink
fix(favorites): making favorites optional, to account for null respon…
Browse files Browse the repository at this point in the history
…se from server (#90)

* making favorites optional, to account for null

* fix
  • Loading branch information
plyr4 authored Feb 5, 2020
1 parent 0519e38 commit f3ef6fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/elm/Vela.elm
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ decodeCurrentUser =
|> required "id" int
|> required "name" string
|> required "token" string
|> required "favorites" (Decode.list string)
|> optional "favorites" (Decode.list string) []
|> required "active" bool
|> required "admin" bool

Expand Down

0 comments on commit f3ef6fc

Please sign in to comment.