Skip to content

Commit

Permalink
data is object, not simple array of strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Moros1138 committed May 6, 2024
1 parent 235e34b commit c61c7d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. Each batch

It is a summary of changes that would be pertinent to the end user of the PGEtinker website. For a comprehensive history of changes made to the project, please refer to the repository's commit history.

## 2024-05-06 (2)

- Fixed bug with supporter wall

## 2024-05-06

- Added cloudflare analytics and disclosure
Expand Down
5 changes: 4 additions & 1 deletion resources/js/lib/supportersDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,12 @@ export default function supportersDialog()

if(response.data.supporters.length > 0)
{
// sort biggest first
response.data.supporters.sort((a, b) => b.amount - a.amount);

response.data.supporters.forEach((entry) =>
{
entries.push(`<div class="name">◀ ${entry} ▶</div>`);
entries.push(`<div class="name">◀ ${entry.name} ▶</div>`);
});
}
else
Expand Down

0 comments on commit c61c7d6

Please sign in to comment.