Merge pull request #71 from AAMasters/develop

Bug Fixes
This commit is contained in:
benme authored and GitHub committed 2019-06-25 14:55:12 -03:00
commit a92a38c5ff
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -113,7 +113,7 @@ function newRestartSimulation () {
thisObject.status = 'Restarting'
await graphQlRestartSimulation(simulationParams)
thisObject.status = 'Calculating'
counterTillNextState = 250
counterTillNextState = 50
} else {
thisObject.status = 'Error'
counterTillNextState = 500
@@ -131,7 +131,7 @@ function newRestartSimulation () {
if (panel.name === 'Products Panel') {
for (j = 0; j < panel.productCards.length; j++) {
let productCard = panel.productCards[j]
if (productCard.product.codeName in (productCardsToTurnOff) && productCard.status !== PRODUCT_CARD_STATUS.OFF) {
if (productCardsToTurnOff.includes(productCard.product.codeName) && productCard.status !== PRODUCT_CARD_STATUS.OFF) {
productCard.turnOff()
productCardsToTurnOn.push(productCard)
}
@@ -166,7 +166,7 @@ function newRestartSimulation () {
case 'Calculating':
thisObject.status = 'Refreshing'
turnOffProductCards()
counterTillNextState = 50
counterTillNextState = 10
break
case 'Refreshing':
thisObject.status = 'Ready'
+1 -1
View File
@@ -47,7 +47,7 @@ function newStrategizerGateway () {
}
user = JSON.parse(user)
let fbSlug = 'simulator' + '-' + user.alias
let fbSlug = 'simulator' + '-' + 'bot' + '-' + user.alias
/* See if we need to update or create a new record at the strategizer */