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

fix: handle undefined fUSDC in SwapPro component #222

Closed

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Fix undefined fUSDC in SwapPro component

Changes

  • Added null check for fUSDC in formattedTokenPrice calculation
  • Added early return with "0" when fUSDC is undefined
  • Updated useMemo dependency array to properly include fUSDC

Testing

  • Changes have been tested through:
    • Format checks (pnpm format:check)
    • Lint checks (pnpm lint:next)
    • Test linting (pnpm lint:tests)

Link to Devin run

https://app.devin.ai/sessions/ed26924500044f5eaf5960947774aa5f

Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

Attention: Patch coverage is 25.00000% with 3 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
web/src/components/SwapPro/index.tsx 25.00% 2 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@af-afk af-afk closed this Dec 13, 2024
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