Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Don't show 0 balance not Unlocked
Browse files Browse the repository at this point in the history
  • Loading branch information
bitspill committed Oct 13, 2015
1 parent 048ab69 commit 290460d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/plugins/Overview/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div class="header">
<div class="title">Overview</div>
<div class="capsule">
<div class="pod" id="balance">Balance: 0 SC</div>
<div class="pod" id="balance">Balance: ---</div>
<div class="pod" id="peers">Peers: 0</div>
<div class="pod" id="height">Block Height: 0</div>
<div class="pod" id="lock">Locked</div>
Expand Down
3 changes: 2 additions & 1 deletion app/plugins/Overview/js/overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ function tooltip(message, element) {
// Define IPC listeners and update DOM per call
IPC.on('wallet-update', function(err, result) {
var bal = result !== null ? formatSiacoin(result.confirmedsiacoinbalance) : null;
updateField(err, 'Balance: ', bal, 'balance');

var unlocked = result !== null ? result.unlocked : null;
var encrypted = result !== null ? result.encrypted : null;
Expand All @@ -81,6 +80,8 @@ IPC.on('wallet-update', function(err, result) {
} else {
updateField(err, 'Locked', '', 'lock');
}

updateField(err, 'Balance: ', unlocked ? bal : '---', 'balance');
});
IPC.on('peers-update', function(err, result) {
var value = result !== null ? result.Peers.length : null;
Expand Down

0 comments on commit 290460d

Please sign in to comment.