From ba8394c2a4f0f445b1994cf8ba27186ae278d788 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Wed, 27 Jan 2021 18:05:34 -0300 Subject: [PATCH] Fixing inverted logic in floodzones icons database selection. --- src/app/hooks/selectFromDB.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/hooks/selectFromDB.js b/src/app/hooks/selectFromDB.js index 2035b1f..2c4ce71 100644 --- a/src/app/hooks/selectFromDB.js +++ b/src/app/hooks/selectFromDB.js @@ -72,13 +72,13 @@ function parseFloodZones(row) { displacement += offset; return { ID: ++ID, - title: row["Passable"] == 0 ? "Transponível" : "Intransponível", + title: row["Passable"] == 1 ? "Transponível" : "Intransponível", coordinate: { latitude: row["Latitude"], longitude: row["Longitude"] + displacement, }, image: - row["Passable"] == 0 + row["Passable"] == 1 ? custom_assets.floodZones.passable : custom_assets.floodZones.notPassable, description: row["Description"],