summaryrefslogtreecommitdiff
path: root/src/components/app/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/app/map')
-rw-r--r--src/components/app/map/groups/RackGroup.js2
-rw-r--r--src/components/app/map/groups/TileGroup.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/components/app/map/groups/RackGroup.js b/src/components/app/map/groups/RackGroup.js
index 233d0c20..b31575a6 100644
--- a/src/components/app/map/groups/RackGroup.js
+++ b/src/components/app/map/groups/RackGroup.js
@@ -9,7 +9,7 @@ import TileObject from "../elements/TileObject";
const RackGroup = ({tile, inSimulation, rackLoad}) => {
let color = RACK_BACKGROUND_COLOR;
- if (inSimulation && rackLoad) {
+ if (inSimulation && rackLoad >= 0) {
color = convertLoadToSimulationColor(rackLoad);
}
diff --git a/src/components/app/map/groups/TileGroup.js b/src/components/app/map/groups/TileGroup.js
index c41e78a4..0cd4ea59 100644
--- a/src/components/app/map/groups/TileGroup.js
+++ b/src/components/app/map/groups/TileGroup.js
@@ -20,7 +20,7 @@ const TileGroup = ({tile, newTile, inSimulation, roomLoad, onClick}) => {
let color = ROOM_DEFAULT_COLOR;
if (newTile) {
color = ROOM_IN_CONSTRUCTION_COLOR;
- } else if (inSimulation && roomLoad) {
+ } else if (inSimulation && roomLoad >= 0) {
color = convertLoadToSimulationColor(roomLoad);
}