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} ); }