Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Waiting for Mint" Enhancement #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

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