Skip to content

Commit

Permalink
fix: wallet balance
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfreska committed Dec 13, 2023
1 parent 3f175a8 commit 0d80508
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .changeset/happy-mirrors-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'hostd': minor
'renterd': minor
---

The wallet balance shown on the wallet page is now spendable plus unconfirmed.
4 changes: 2 additions & 2 deletions libs/design-system/src/app/WalletBalance.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function WalletBalance({
</Text>
<ValueScFiat
variant="value"
value={balanceSc.spendable}
value={balanceSc.spendable.plus(balanceSc.unconfirmed)}
size="12"
showTooltip={false}
/>
Expand All @@ -50,7 +50,7 @@ export function WalletBalance({
<Panel className="hidden sm:flex h-7 px-3 items-center">
<ValueScFiat
variant="value"
value={balanceSc.spendable}
value={balanceSc.spendable.plus(balanceSc.unconfirmed)}
size="12"
showTooltip={false}
/>
Expand Down
2 changes: 1 addition & 1 deletion libs/design-system/src/components/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function FieldLabel<Values extends FieldValues>({

type FieldErrorProps<Values extends FieldValues> = {
form: UseFormReturn<Values>
name: Path<Values>
name: 'root' | Path<Values>
}

export function FieldError<Values extends FieldValues>({
Expand Down

0 comments on commit 0d80508

Please sign in to comment.