From d205e6d3e8d7f575f1081d80f56b15b553069367 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Mon, 19 Apr 2021 13:00:00 -0300 Subject: [PATCH] Fixing mapmodal to officialPluviometer --- src/app/components/MapModal.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/components/MapModal.js b/src/app/components/MapModal.js index 72ebfa2..1200d0e 100644 --- a/src/app/components/MapModal.js +++ b/src/app/components/MapModal.js @@ -205,6 +205,10 @@ function componentBody(props) { ); } +function isPluviometer(name) { + return name === "pluviometer" || name === "officialPluviometer"; +} + function MapModal(props) { return ( {topBar(props)} {componentBody(props)} - {props.name === "pluviometer" ? moreInfo(props) : null} - {props.name !== "pluviometer" ? reviews(props) : null} + {isPluviometer(props.name) ? moreInfo(props) : null} + {isPluviometer(props.name) ? reviews(props) : null} ); }