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: empty loan state #7792

Merged
merged 3 commits into from
Sep 24, 2024
Merged

fix: empty loan state #7792

merged 3 commits into from
Sep 24, 2024

Conversation

0xApotheosis
Copy link
Contributor

@0xApotheosis 0xApotheosis commented Sep 24, 2024

Description

Properly handles no loan state.

develop:

Screenshot 2024-09-24 at 12 33 12

This PR:

Screenshot 2024-09-24 at 12 31 28

This change is needed as we can still have data on a position without an actual loan:

Screenshot 2024-09-24 at 12 12 26

Issue (if applicable)

N/A, discovered by @gomesalexandre in a recent review: #7753 (review)

Risk

Low

What protocols, transaction types, wallets or contract interactions might be affected by this PR?

None

Testing

  • When connected to a wallet with no loans, the placeholder component is shown as in the screenshot above.
  • When connect to w wallet with loans, the loans are still shown

Engineering

☝️

Operations

  • 🏁 My feature is behind a flag and doesn't require operations testing (yet)

☝️

Screenshots (if applicable)

See above.

@0xApotheosis 0xApotheosis requested a review from a team as a code owner September 24, 2024 04:44
@NeOMakinG NeOMakinG self-requested a review September 24, 2024 08:00
Copy link
Contributor

@gomesalexandre gomesalexandre left a comment

Choose a reason for hiding this comment

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

Does precisely what it says on the box!

https://jam.dev/c/ff471b23-f24e-4034-b461-fc50d53019d3

One comment to reduce diff size at your convenience.

Copy link
Collaborator

@NeOMakinG NeOMakinG left a comment

Choose a reason for hiding this comment

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

image

Does what it says, lgtm

@gomesalexandre gomesalexandre enabled auto-merge (squash) September 24, 2024 08:13
@gomesalexandre gomesalexandre merged commit f585c31 into develop Sep 24, 2024
3 checks passed
@gomesalexandre gomesalexandre deleted the fix-past-loan-state branch September 24, 2024 08:30
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.

3 participants