-
Notifications
You must be signed in to change notification settings - Fork 619
[TOOL-3259] Dashboard: Fix Claimable Module UI crashing on for ERC20 token currency set in claim condition #6114
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
Conversation
|
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6114 +/- ##
=======================================
Coverage 56.87% 56.87%
=======================================
Files 1153 1153
Lines 63896 63896
Branches 5180 5180
=======================================
Hits 36344 36344
Misses 26825 26825
Partials 727 727
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
Merge activity
|
…token currency set in claim condition (#6114) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `ClaimableModule` component by integrating the `useQuery` hook for fetching currency decimals and refining the logic for determining when to fetch this data. ### Detailed summary - Added `useQuery` to fetch currency decimals based on the `claimConditionCurrency`. - Refactored the logic to check if currency decimals should be fetched. - Updated the conditional rendering of fetched data in the `ClaimableModule`. - Made the "Add Claim Condition" button disabled based on `props.isOwnerAccount`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->

PR-Codex overview
This PR focuses on enhancing the
Claimablecomponent by implementing a query for fetching currency decimals and improving the handling of currency-related logic.Detailed summary
useQueryfor fetching currency decimals instead of usinguseReadContract.