Ok, one final fix

This commit is contained in:
Rick Falkvinge
2017-02-20 01:31:25 +01:00
parent 5526a0d9c8
commit 7d2262b9bf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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());
+1 -1
View File
@@ -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") {