Description
I created a new 721A contract on your premade contracts - on Rinkeby
I then go to the embed tab - it says "sold out" - this is because no NFTs have been created and isSoldOut
takes priority over no active claim phase according to your logic
So far so good
I then "create" and upload any nft image with dummy meta
I then go to embed and it shows on the mint button (in preview):
"There is not enough supply to claim" if quantity is 1
"Mint (Free)" if quantity is 0
The issue here is that the increase quantity button is not disabled, and the "Mint (free)" button when quantity is 0 is also not disabled. See images
I replicated this with your 721 (on rinkeby) and went through your source code to confirm this is incorrect behaviour. The expected behaviour is correct on the 721 as below:
This should be the case as no claim phase has been created. Both the mint button and the quantity buttons are disabled as expected.
Perhaps the issue lies in calling useClaimIneligibilityReasons