From f3ef6fcaee22790593ec414d7be9c43bcad6acbc Mon Sep 17 00:00:00 2001 From: David Vader <48764154+davidvader@users.noreply.github.com> Date: Wed, 5 Feb 2020 09:23:30 -0600 Subject: [PATCH] fix(favorites): making favorites optional, to account for null response from server (#90) * making favorites optional, to account for null * fix --- src/elm/Vela.elm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elm/Vela.elm b/src/elm/Vela.elm index 487b6adfa..3797cce08 100644 --- a/src/elm/Vela.elm +++ b/src/elm/Vela.elm @@ -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