-
Notifications
You must be signed in to change notification settings - Fork 16
fix: sideshift button not rendering #439
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
Conversation
| labelId="select-coin-label" | ||
| className={classes.select_box} | ||
| value={selectedCoin?.coin} | ||
| value={selectedCoin?.coin ?? null} |
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.
this and the similar line below were put here to fixe console errors that would appear in the browser
Klakurka
left a comment
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.
Let's pop a code comment on that empty div as that's really weird...
|
@johnkuney any idea what's going on there? |
I had tried to do: That made the sideshift logo and the input field HUGE. Some weird stuff happening indeed. |
|
Thats so weird. How did you even figure that out? I did try moving the button up, above the {altpaymentEditable ? ( part just to see what it would do, and it rendered without a blank div, but then the editable field did not render ha |
1db7698 to
a559761
Compare
|
I found the change that broke it and reverted to its previous state. |
|
Cool, any idea why that broke it? just curious, why does it need to be a grid? and why would that effect a button outside the grid? |
I don't know it, really. Maybe it has to do with CSS in the widget, since the AltpaymentWidget is a child of it. Maybe it has to do with the way react renders stuff and hydrates the DOM in the client side. But truly, those are just guesses from my side. |
Description
Fixes issue where an editable amount paybutton wouldn't allow for the user to finish the process of paying with another currency.
Test plan
After selecting an altcoin, the button "Send with XYZ" wouldn't appear in master. In this branch, it should appear normally.
Remarks
<div></div>. I have no idea why is that so. Tried to figure out but decided not to spend too much time on that. My guess is something related to the new CSS, since this worked fine before.