diff options
| author | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-28 22:48:38 +0200 |
|---|---|---|
| committer | Georgios Andreadis <g.andreadis@student.tudelft.nl> | 2017-09-28 22:48:38 +0200 |
| commit | bcf119f2c4ac587cc8263db8a9fc0581521fdec7 (patch) | |
| tree | c7c78a13d575b8345d729bb5aa44022d7f0715d4 /src/components/app/map/groups/TileGroup.js | |
| parent | f29305d4c966af83a0a842f78dcb7adb7128b37c (diff) | |
Implement batch state adding
Also fixes the 'hidden states' bug.
Diffstat (limited to 'src/components/app/map/groups/TileGroup.js')
| -rw-r--r-- | src/components/app/map/groups/TileGroup.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
