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(wallet-ui): show rejected offers properly #6328

Merged
merged 2 commits into from
Sep 27, 2022
Merged

Conversation

samsiegart
Copy link
Contributor

fixes #6319

@samsiegart samsiegart marked this pull request as ready for review September 26, 2022 23:39
@@ -180,6 +181,12 @@ const Proposal = ({ offer, purses }) => {
<pre>{JSON.stringify(args, null, 2)}</pre>
</div>
)}
{error !== undefined && (
Copy link
Member

Choose a reason for hiding this comment

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

why not show the error if it's ever a string or other truthy object?

Suggested change
{error !== undefined && (
{error && (

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, just copypasta, done.

if (
oldOffer &&
if (!oldOffer) {
break;
Copy link
Member

Choose a reason for hiding this comment

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

here we have an offerStatus update for an unknown offer. I think we'd benefit from console.warn that this happened

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@samsiegart samsiegart added automerge:squash Automatically squash merge automerge:rebase Automatically rebase updates, then merge labels Sep 26, 2022
@mergify mergify bot merged commit fa32369 into master Sep 27, 2022
@mergify mergify bot deleted the wallet-rejected-offers branch September 27, 2022 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge:rebase Automatically rebase updates, then merge automerge:squash Automatically squash merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wallet UI did not provide feedback on rejected offer
2 participants