Skip to content

Conversation

@TravisLeeRichardson
Copy link

Issue:
Code was hanging on "waiting for mint" (line 121 of App.js).
The nft object was null when calling the mint function.

The fix:
We need to ensure that the nft object is initialized properly before the user can submit the form.

The changes:

  1. Disable the "Create & Mint" button by default.
  2. Add a new state variable to track if the minting is enabled.
  3. Update the useEffect to watch for changes in the nft object and enable the button accordingly.

@TravisLeeRichardson TravisLeeRichardson changed the title Fixed Waiting for Mint bug "Waiting for Mint" Enhancement Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant