mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 15:12:01 +03:00
Improve flash error message.
This commit is contained in:
parent
d5c698021e
commit
2725e9bb00
@ -603,8 +603,12 @@ init _ _ static =
|
||||
Err "Got errors"
|
||||
|
||||
else
|
||||
--Ok ("Successfully received user " ++ actionData.user.first ++ " " ++ actionData.user.last)
|
||||
Ok ""
|
||||
case actionData.user of
|
||||
Just user ->
|
||||
Ok ("Successfully updated profile for user " ++ user.first ++ " " ++ user.last)
|
||||
|
||||
Nothing ->
|
||||
Err "Unexpected"
|
||||
)
|
||||
}
|
||||
, Effect.none
|
||||
|
Loading…
Reference in New Issue
Block a user