bugfix(community): Show popup for infinite supply collectibles (#14410)

This commit is contained in:
Cuteivist 2024-05-13 12:59:49 +02:00 committed by GitHub
parent 406f12d239
commit 73cee9eebf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -335,8 +335,8 @@ StatusDropdown {
//When the collectible is unique, there is no need for the user to select amount
//Just send the add/update events
if((item.supply && item.supply.toString() === "1")
|| (item.remainingSupply && item.remainingSupply.toString() === "1")) {
if((!item.infiniteSupply && (item.supply && item.supply.toString() === "1")
|| (item.remainingSupply && item.remainingSupply.toString() === "1"))) {
root.collectibleAmount = "1"
d.updateSelected ? root.updateCollectible(root.collectibleKey, "1")
: root.addCollectible(root.collectibleKey, "1")