Skip to content

Commit 1cd93ac

Browse files
committed
display initial currency correctly
1 parent 45818ff commit 1cd93ac

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/js/view/screen/main.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -192,14 +192,14 @@ class MainScreen {
192192
I.flyingmoney(icon_span);
193193
var label = ended ? "Socket Session" : "In Progress";
194194
D.textSpan(flex, label, "flex-grow text-sm");
195-
196195
D.textSpan(flex, total_txs.toString() + "tx", "font-bold px-2");
197-
196+
var wad = (total_txs == 0) ?
197+
this.model.msatsToWalletCurrencyWad(0) : total_wad;
198198
if (increment) {
199-
D.textSpan(flex, "+ " + total_wad.toString(),
199+
D.textSpan(flex, "+ " + wad.toString(),
200200
"font-bold text-green-400 px-2");
201201
} else {
202-
D.textSpan(flex, "- " + total_wad.toString(),
202+
D.textSpan(flex, "- " + wad.toString(),
203203
"font-bold text-red-400 px-2");
204204
}
205205
}

0 commit comments

Comments
 (0)