-
Notifications
You must be signed in to change notification settings - Fork 228
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
Conversation
@@ -180,6 +181,12 @@ const Proposal = ({ offer, purses }) => { | |||
<pre>{JSON.stringify(args, null, 2)}</pre> | |||
</div> | |||
)} | |||
{error !== undefined && ( |
There was a problem hiding this comment.
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?
{error !== undefined && ( | |
{error && ( |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
fixes #6319