From 7d2262b9bfba90a0a75ed3272737b586a069974c Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Mon, 20 Feb 2017 01:31:25 +0100 Subject: [PATCH] Ok, one final fix --- Backend/BackendLoop.cs | 2 +- Site/Scripts/Swarmops-v5.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Backend/BackendLoop.cs b/Backend/BackendLoop.cs index 961fc612..2a888df4 100644 --- a/Backend/BackendLoop.cs +++ b/Backend/BackendLoop.cs @@ -978,7 +978,7 @@ namespace Swarmops.Backend Swarmops.Logic.Financial.Money organizationCents = new Money(satoshis, Currency.Bitcoin).ToCurrency(currency); json["Satoshis"] = satoshis.ToString(); json["Cents"] = organizationCents.Cents.ToString(); - json["CentsFormatted"] = String.Format("N2", organizationCents.Cents/100.0); + json["CentsFormatted"] = String.Format("{0:N2}", organizationCents.Cents/100.0); _socketServer.WebSocketServices.Broadcast(json.ToString()); diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js index 1af20095..f7e8cb2d 100644 --- a/Site/Scripts/Swarmops-v5.js +++ b/Site/Scripts/Swarmops-v5.js @@ -42,7 +42,7 @@ function _masterInitializeSocket(authenticationTicket) { } if (!handled) { - alertify.log("Bitcoin received: " + message.Currecy + " " + message.CentsFormatted); + alertify.log("Bitcoin received: " + message.CurrencyCode + " " + message.CentsFormatted); } } else if (message.MessageType == "SandboxUpdate") {