You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running the latest code from my local machine, I can definitely see the clear button rendering from the AssetInput component inside of the BorrowModalContent component👇
Inside of AssetInput component, the clear button renders when value !== '' i.e. value is present
The bug screenshot above is from the RepayModalContent component
And so, I wonder if I've missed anything to how RepayModalContent component passes amount when rendering AssetInput which would result in the clear button not being rendered
Hey @MatthewCYLau, I didn't catch this the first time around, but if the length of the asset list is greater than 1, then the clear button won't show. You can see this if you open the repay modal, and you have more than 1 asset in your wallet that you are able to repay with.
I think another thing that should be added is to not render the IconButton if disabled is true.
Describe the bug
The "X" icon is not in the borrow transaction modal. This will come from closed change #836
To Reproduce
Steps to reproduce the behavior:
Expected behavior
After entering a value, the "X" button should be visible to clear the input
@MatthewCYLau can you please investigate.
The text was updated successfully, but these errors were encountered: