Skip to content

Commit

Permalink
Fix template error on account page (#8562) (#8622)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolheiser authored and zeripath committed Oct 22, 2019
1 parent 0032278 commit 2fbd5ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/user/setting/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func Account(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("settings")
ctx.Data["PageIsSettingsAccount"] = true
ctx.Data["Email"] = ctx.User.Email
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()

loadAccountData(ctx)

Expand Down Expand Up @@ -230,4 +229,5 @@ func loadAccountData(ctx *context.Context) {
return
}
ctx.Data["Emails"] = emails
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
}

0 comments on commit 2fbd5ae

Please sign in to comment.