Improve flash error message.

This commit is contained in:
Dillon Kearns 2022-05-11 10:51:43 -07:00
parent d5c698021e
commit 2725e9bb00

View File

@ -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