Browse Source

Fixing inverted logic in floodzones icons database selection.

master
GabrielTrettel 4 years ago
parent
commit
ba8394c2a4
  1. 4
      src/app/hooks/selectFromDB.js

4
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"],

Loading…
Cancel
Save