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: Invalid json response body when address is null #190

Merged
merged 2 commits into from
May 23, 2023

Conversation

karelianpie
Copy link
Member

Description

address can be null which makes the request fail, i.e. http://yearn.finance/vaults/250/null

Related Issue

Fix https://xopowo-team.sentry.io/issues/4188080554/events/137bc2594c664531a5f7437c32bba774/

Screenshot 2023-05-22 at 10 35 45

Motivation and Context

Avoid unnecessary fetches when the endpoint is not valid

How Has This Been Tested?

Checked http://localhost:3000/vaults/1/null

Screenshots (if appropriate):

Not a great empty screen for a vault, but we can implement an empty view in another PR

Screenshot 2023-05-22 at 10 49 09

@karelianpie karelianpie requested a review from Majorfi May 22, 2023 07:50
@karelianpie karelianpie self-assigned this May 22, 2023
@vercel
Copy link

vercel bot commented May 22, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
yearnfi ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 23, 2023 8:32am

Majorfi
Majorfi previously approved these changes May 23, 2023
Copy link
Collaborator

@Majorfi Majorfi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably some conflicts to expect with #195 but LGTM

@Majorfi Majorfi added this pull request to the merge queue May 23, 2023
Merged via the queue into main with commit 1cbef81 May 23, 2023
@Majorfi Majorfi deleted the fix/invalid-json-response-body branch May 23, 2023 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🟢 Done
Development

Successfully merging this pull request may close these issues.

2 participants