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") {