Skip to content

Commit

Permalink
🚸 Fix pendingNFT count should not change if status not match
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Jan 28, 2025
1 parent faa7b36 commit a76a3ec
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion pages/nft-book-store/collection/status/[collectionId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -866,7 +866,10 @@ async function hardSetStatusToCompleted (purchase: any) {
orderData.status = previousStatus
throw fetchError.value
}
collectionListingInfo.value.pendingNFTCount -= 1
if (previousStatus === 'pendingNFT') {
collectionListingInfo.value.pendingNFTCount -= 1
}
}
function addModeratorWallet () {
Expand Down
4 changes: 3 additions & 1 deletion pages/nft-book-store/status/[classId].vue
Original file line number Diff line number Diff line change
Expand Up @@ -1207,7 +1207,9 @@ async function hardSetStatusToCompleted (purchase: any) {
throw fetchError.value
}
classListingInfo.value.pendingNFTCount -= 1
if (previousStatus === 'pendingNFT') {
classListingInfo.value.pendingNFTCount -= 1
}
}
function addModeratorWallet () {
Expand Down

0 comments on commit a76a3ec

Please sign in to comment.