Skip to content

Commit

Permalink
Merge pull request #204 from poap-xyz/release/v1.12.3
Browse files Browse the repository at this point in the history
Release v1.12.3
  • Loading branch information
jm42 authored Apr 28, 2024
2 parents 11ae948 + af7f442 commit 624b9b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions netlify/edge-functions/frame.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ export default async function handler(request, context) {
let totalSupply = 0
let totalReservations = 0
let totalMoments = 0
let totalCollections = 0

for (const eventInfo of eventsInfo) {
totalSupply += eventInfo.owners.length
totalReservations += eventInfo.metrics?.emailReservations ?? 0
totalMoments += eventInfo.metrics?.momentsUploaded ?? 0
totalCollections += eventInfo.metrics?.collectionsIncludes ?? 0
}

if (eventsInfo.length === 1) {
Expand Down Expand Up @@ -139,7 +137,7 @@ export default async function handler(request, context) {
supply: totalSupply,
reservations: totalReservations,
moments: totalMoments,
collections: totalCollections,
collections: eventsInfo.length === 1 ? eventsInfo[0].metrics?.collectionsIncludes ?? 0 : 0,
})}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/poap-family",
"version": "1.12.2",
"version": "1.12.3",
"author": {
"name": "POAP",
"url": "https://poap.xyz"
Expand Down

0 comments on commit 624b9b3

Please sign in to comment.