Closed Josh-121 closed 1 week ago
@Josh-121 is attempting to deploy a commit to the LFG Labs Team on Vercel.
A member of the Team first needs to authorize it.
The changes involve the addition of a new state variable totalBalance
in the profileCard.tsx
component to manage and display a user's total balance fetched asynchronously from the argentPortfolioService
. A new function calculateTotalBalance
is introduced in the argentPortfolioService.ts
file to compute the total value of user tokens based on their wallet address. The component's rendering logic is updated to reflect this new balance. Modifications are also made in the questDetails.tsx
and questDetails.tsx
components to improve error handling for task names, while adjustments in parser.ts
streamline tile data processing.
File | Change Summary |
---|---|
components/UI/profileCard/profileCard.tsx | - Added state variable totalBalance: number | null . - Implemented useEffect to fetch total balance using calculateTotalBalance . - Updated rendering logic to display totalBalance . |
services/argentPortfolioService.ts | - Introduced asynchronous function calculateTotalBalance(walletAddress: string, currency: "USD" | "EUR" | "GBP" = "USD"): Promise<number> . - Function fetches user tokens and calculates total balance with error handling. |
components/admin/questDetails.tsx | - Updated logic for customError prop to use case-insensitive check for task names. |
components/quests/questDetails.tsx | - Refined logic for customError prop with case-insensitive check for task names. |
utils/parser.ts | - Removed null coalescing operators in calculations within buildTileData method, affecting tile data processing. |
services/argentPortfolioService.ts
related to the calculateTotalBalance
function and the new retry mechanism for data fetching are directly connected to the modifications in the main PR, as both involve fetching and calculating user token balances.Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
starknet-quest | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 5, 2024 2:42pm |
Pull Request type
Please add the labels corresponding to the type of changes your PR introduces:
Resolves: #NA
Other information
Summary by CodeRabbit
New Features
Bug Fixes