Skip to content

Commit

Permalink
Fix copy on onchain deposit (#664)
Browse files Browse the repository at this point in the history
* Fix copy on onchain deposit

* fix: formatting

* fix: grammar

* chore: style and copy cleanup

---------

Co-authored-by: Roland Bewick <roland.bewick@gmail.com>
  • Loading branch information
itstomekk and rolznz committed Sep 19, 2024
1 parent 46e76d9 commit 3fba333
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions frontend/src/screens/channels/CurrentChannelOrder.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,15 +303,18 @@ function PayBitcoinChannelOrderTopup({ order }: { order: NewChannelOrder }) {
<Label htmlFor="text">On-Chain Address</Label>
<p className="text-xs">
You currently have{" "}
{new Intl.NumberFormat().format(balances.onchain.total)} sats. We
recommend to deposit another{" "}
{new Intl.NumberFormat().format(recommendedAmount)} sats to open a
channel.{" "}
<span className="font-semibold">
{new Intl.NumberFormat().format(balances.onchain.total)}
</span>{" "}
sats. We recommend depositing{" "}
<span className="font-semibold">
{new Intl.NumberFormat().format(recommendedAmount)}
</span>{" "}
sats to open this channel.
</p>
<p className="text-xs text-muted-foreground">
~{new Intl.NumberFormat().format(+missingAmount)} sats are missing
to cover the cost of opening the channel, including onchain fees and
potential onchain channel reserves.
This amount includes cost for the channel opening and potential
channel onchain reserves.
</p>
<div className="flex flex-row gap-2 items-center">
<Input
Expand Down

0 comments on commit 3fba333

Please sign in to comment.