Skip to content

Commit

Permalink
Fix UI
Browse files Browse the repository at this point in the history
  • Loading branch information
jveski committed Jun 19, 2024
1 parent fb4ef5e commit 68abbca
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,15 @@ func (s *Server) newProfileViewHandler() http.HandlerFunc {
renderSystemError(w, "error while fetching user: %s", err)
return
}
extended, err := s.Keycloak.ExtendUser(r.Context(), user)
if err != nil {
renderSystemError(w, "error while extending user: %s", err)
return
}

viewData := map[string]any{
"page": "profile",
"user": user,
"user": extended,
"prices": payment.CalculateDiscounts(user, s.PriceCache.GetPrices()),
"migratedAccount": user.LastPaypalTransactionTime != time.Time{},
"stripePending": etagString != "" && user.StripeETag < etag,
Expand Down

0 comments on commit 68abbca

Please sign in to comment.