Skip to content

Commit

Permalink
Simplify sponsor rendering logic for empty sponsor list
Browse files Browse the repository at this point in the history
  • Loading branch information
stefann-01 committed Oct 16, 2024
1 parent 2ed45e3 commit 22531c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/gno.land/r/stefann/home/home.gno
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func renderSponsors() string {
out := `<h3 style="margin-top: 5px; margin-bottom: 20px">Sponsor Leaderboard</h3>` + "\n"

if len(sponsorship.sponsors) == 0 {
out += `<p style="text-align: center;">No sponsors yet. Be the first to tip the jar!</p>` + "\n"
return out + `<p style="text-align: center;">No sponsors yet. Be the first to tip the jar!</p>` + "\n"
} else {
topSponsors := GetTopSponsors()
numSponsors := len(topSponsors)
Expand Down

0 comments on commit 22531c7

Please sign in to comment.