Skip to content

Commit

Permalink
fix: Reverse mixed-up channel/onchain balances
Browse files Browse the repository at this point in the history
  • Loading branch information
shesek committed Jun 7, 2019
1 parent 84ec420 commit d655328
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- Fix a bug in the homepage on-chain/channel balances display

## 0.2.6 - 2019-06-07

- Changed the way the balance shown in the top-right corner is calculated. See:
Expand Down
4 changes: 2 additions & 2 deletions client/src/views/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ const home = ({ feed, feedStart, feedActive, unitf, obalance, cbalance, channels
, channels && funds ? div('.balance-overview.card.text-center.mb-3', div('.card-body.p-2',
div('.row', [
div('.col-6', div('.container', [
p('.mb-0.font-weight-light', [ unitf(obalance), ' ', span('.text-muted', pluralize`in ${channels.length} channel`) ])
p('.mb-0.font-weight-light', [ unitf(cbalance), ' ', span('.text-muted', pluralize`in ${channels.length} channel`) ])
]))
, div('.col-6', div('.container', [
p('.mb-0.font-weight-light', [ unitf(cbalance), ' ', span('.text-muted', pluralize`in ${funds.outputs.length} output`) ])
p('.mb-0.font-weight-light', [ unitf(obalance), ' ', span('.text-muted', pluralize`in ${funds.outputs.length} output`) ])
]))
])
)) : ''
Expand Down

0 comments on commit d655328

Please sign in to comment.