Skip to content

Commit 240f46a

Browse files
jolheiserzeripath
authored andcommitted
Fix template error on account page (#8562)
1 parent 0a004a6 commit 240f46a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/user/setting/account.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ func Account(ctx *context.Context) {
2828
ctx.Data["Title"] = ctx.Tr("settings")
2929
ctx.Data["PageIsSettingsAccount"] = true
3030
ctx.Data["Email"] = ctx.User.Email
31-
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
3231

3332
loadAccountData(ctx)
3433

@@ -230,4 +229,5 @@ func loadAccountData(ctx *context.Context) {
230229
return
231230
}
232231
ctx.Data["Emails"] = emails
232+
ctx.Data["EmailNotificationsPreference"] = ctx.User.EmailNotifications()
233233
}

0 commit comments

Comments
 (0)