diff --git a/FrontSocket/FrontendServices.cs b/FrontSocket/FrontendServices.cs index a79da98a..dab240ef 100644 --- a/FrontSocket/FrontendServices.cs +++ b/FrontSocket/FrontendServices.cs @@ -70,7 +70,7 @@ namespace Swarmops.Frontend.Socket json ["MessageType"] = json["messageType"] = "AnnualProfitLossCents"; json["ProfitLossCents"] = FrontendLoop.GetOrganizationProfitLossCents(this._authority.Organization).ToString(); json["OrganizationId"] = this._authority.Organization.Identity; - json["Instant"] = 1; // instant update, no odometer rolling for init + json["Instant"] = "1"; // instant update, no odometer rolling for init this.Send(json.ToString()); } diff --git a/Site/Scripts/Swarmops-v5.js b/Site/Scripts/Swarmops-v5.js index 5ab39b59..8b03a127 100644 --- a/Site/Scripts/Swarmops-v5.js +++ b/Site/Scripts/Swarmops-v5.js @@ -108,7 +108,7 @@ function _masterInitializeSocket(authenticationTicket) { else if (message.MessageType == "AnnualProfitLossCents") { if (odoProfitLossToDate != undefined) // if there's a P&L odometer on the current page { - if (message.Instant == 1) { + if (message.Instant == "1") { window.odometerOptions.duration = 1; } odoProfitLossToDate.innerHTML = (message.ProfitLossCents / 100.0) + 0.001; // update it; +0.001 needed for %.2f