Store page throws an error, because of invalid payload in response
deus42 opened this issue · 1 comments
We minted programmatically an NFT (probably we did it in a different way or missed something) and it broke Mintbase UI:
https://testnet.mintbase.io/store/cryptokids.mintspace2.testnet
Returns «An unexpected error has occurred.»
{ "id": "q5LiLpH0QNJ2PojWl4lmUZ3zSss8hbtz--iBLCk5T_g:cryptokids.mintspace2.testnet", "metaId": "q5LiLpH0QNJ2PojWl4lmUZ3zSss8hbtz--iBLCk5T_g", "storeId": "cryptokids.mintspace2.testnet", "store": { "id": "cryptokids.mintspace2.testnet", "name": "cryptokids", "symbol": "crk", "owner": "deus.testnet", "__typename": "stores" }, "tokens": [], "__typename": "things" }
Steps to reproduce:
- mint using mintbase-js from another app without specifying price and royalties
- open your store page
Expected behavior
If the response contains an empty array of tokens, the app should handle it correctly and render the store page.
Additionally, there should be a proper validation that will not allow minting without the required fields.