Skip to content

Commit

Permalink
Show minimum deposit amount warning with no account. (#145)
Browse files Browse the repository at this point in the history
* Show minimum deposit amount warning with no account.

* More explicit code.
  • Loading branch information
peiman3 authored Jan 14, 2025
1 parent a031595 commit 570123b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions liquidity/ui/src/components/Deposit/Deposit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,12 +268,12 @@ export function Deposit() {
</Alert>
</Collapse>

{collateralType && liquidityPosition ? (
{collateralType && (liquidityPosition || !params.accountId) ? (
<Collapse
in={
collateralChange.gt(0) &&
collateralChange
.add(liquidityPosition.collateralAmount)
.add(liquidityPosition ? liquidityPosition.collateralAmount : ZEROWEI)
.lt(collateralType.minDelegationD18)
}
animateOpacity
Expand Down

0 comments on commit 570123b

Please sign in to comment.