Swap part1 and part2

This commit is contained in:
Richard Feldman
2018-08-13 05:04:35 -04:00
parent 353623f108
commit 493b5681d4
16 changed files with 156 additions and 156 deletions

View File

@@ -88,7 +88,7 @@ view model =
titleForOther (Author.username author)
Loading username ->
if Just username == Maybe.map Cred.username (Session.cred model.session) then
if Just username == Maybe.map .username (Session.cred model.session) then
myProfileTitle
else
@@ -96,7 +96,7 @@ view model =
Failed username ->
-- We can't follow if it hasn't finished loading yet
if Just username == Maybe.map Cred.username (Session.cred model.session) then
if Just username == Maybe.map .username (Session.cred model.session) then
myProfileTitle
else

View File

@@ -58,7 +58,7 @@ init session =
{ avatar = Avatar.toMaybeString (Profile.avatar profile)
, email = Email.toString (Viewer.email viewer)
, bio = Maybe.withDefault "" (Profile.bio profile)
, username = Username.toString (Cred.username cred)
, username = Username.toString cred.username
, password = Nothing
}