Skip to content

Commit

Permalink
Fix input for Buy Asset amount.
Browse files Browse the repository at this point in the history
The buy asset input was not passing the correct value to setBuyAmount in the buy asset input's onAmountChange handler.
  • Loading branch information
0xDaedalus committed Apr 12, 2022
1 parent ff68f48 commit 1b11741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/pages/Swap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export default function Swap(): ReactElement {
showMaxButton={false}
onAssetSelect={updateBuyAsset}
onAmountChange={(newAmount, error) => {
setBuyAmount(buyAmount)
setBuyAmount(newAmount)
if (typeof error === "undefined") {
updateSwapData("buy", newAmount)
}
Expand Down

0 comments on commit 1b11741

Please sign in to comment.