Skip to content

Commit

Permalink
Disable close from collateral (#747)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpierre authored Jan 22, 2025
1 parent 8b487c2 commit 7e3f0ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/app/src/screens/LoanScreen/PanelClosePosition.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ export function PanelClosePosition({
whiteSpace: "nowrap",
})}
>
{TOKENS_BY_SYMBOL[symbol].name} {symbol === "BOLD" ? "(account)" : "(loan collateral)"}
{TOKENS_BY_SYMBOL[symbol].name} {symbol === "BOLD" ? "(account)" : "(collateral)"}
</div>
),
disabled: symbol !== "BOLD",
disabledReason: symbol !== "BOLD" ? "Coming soon" : undefined,
value: symbol === "BOLD" ? fmtnum(boldBalance.data) : null,
}))}
menuWidth={300}
Expand Down
1 change: 1 addition & 0 deletions frontend/uikit/src/Dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,7 @@ export function Dropdown({
className={css({
fontSize: 11,
textTransform: "uppercase",
whiteSpace: "nowrap",
})}
>
{item.disabledReason ?? "Disabled"}
Expand Down

0 comments on commit 7e3f0ba

Please sign in to comment.