Closed oguzsabi closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
batch7-buidlguidl-com-nextjs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jul 11, 2024 7:06pm |
Closing this with Oz's permission to give someone else an opportunity to submit a PR for the issue.
BatchRegistry
contract fromexternalContracts
.Description
The
checkedInCounter
ofBatchRegistry
contract is read using theuseScaffoldReadContract
function.BatchRegistry
name is used based on the information declared inexternalContracts.ts
In order to display the count a green text is added and a spinner loader is displayed until the count is loaded.
Additional Notes
checkedInCounter === undefined
condition is used withisCheckedInCounterLoading
because at first theisCheckedInCounterLoading
variable is false which created an unwanted state for the loader display. For example, the text followed this flow: 0 -> loader -> 5. This didn't feel like good UX, hence the solution.Related Issues
Closes #5
Address: 0x97d45F88468289ac299B79cF01bbB6f218c46230