Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dull-gifts-greet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@venusprotocol/evm": patch
---

deduplicate APY breakdown display on repay with wallet balance form
2 changes: 1 addition & 1 deletion apps/evm/src/libs/errors/handleError/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BaseError } from 'viem';
import type { BaseError } from 'viem';

import { displayNotification } from 'libs/notifications';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ import {
formatTokensToReadableValue,
getSwapToTokenAmount,
} from 'utilities';
import { ApyBreakdown } from '../../ApyBreakdown';
import { Footer } from '../../Footer';
import type { Approval } from '../../Footer/types';
import { calculateAmountDollars } from '../../calculateAmountDollars';
Expand Down Expand Up @@ -536,7 +535,7 @@ const RepayWithWalletBalanceForm: React.FC<RepayWithWalletBalanceFormProps> = ({
))}
</div>

{isUserConnected ? (
{isUserConnected && (
<>
<Notice
isFormValid={isFormValid}
Expand All @@ -560,8 +559,6 @@ const RepayWithWalletBalanceForm: React.FC<RepayWithWalletBalanceFormProps> = ({
/>
</div>
</>
) : (
<ApyBreakdown pool={pool} balanceMutations={balanceMutations} />
)}

<Footer
Expand Down
Loading