Skip to content

Commit

Permalink
fix: max button on repay form (#3381)
Browse files Browse the repository at this point in the history
  • Loading branch information
therealemjy authored Oct 14, 2024
1 parent 3bea281 commit 0690e47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tame-timers-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@venusprotocol/evm": patch
---

fix initial value used when clicking on max button or repay form
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ export const RepayFormUi: React.FC<RepayFormUiProps> = ({
const handleRightMaxButtonClick = useCallback(() => {
const updatedValues: Partial<FormValues> = {
fixedRepayPercentage: undefined,
amountTokens: '',
};

if (asset.userBorrowBalanceTokens.isEqualTo(0)) {
Expand Down

0 comments on commit 0690e47

Please sign in to comment.