From 979bead857a74d01b75ad564e1e6bbe63699e79b Mon Sep 17 00:00:00 2001 From: Tobias Date: Mon, 30 Sep 2024 12:13:07 +0200 Subject: [PATCH] Work around DebugMapTileBoundaries showing up on production --- src/survey-public/components/maps/DebugMapTileBoundaries.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/survey-public/components/maps/DebugMapTileBoundaries.tsx b/src/survey-public/components/maps/DebugMapTileBoundaries.tsx index 81ecc2ee..5d61e5b9 100644 --- a/src/survey-public/components/maps/DebugMapTileBoundaries.tsx +++ b/src/survey-public/components/maps/DebugMapTileBoundaries.tsx @@ -1,11 +1,11 @@ -import { isProduction } from "@/src/core/utils" +import { isDev } from "@/src/core/utils" import { useState } from "react" import { useMap } from "react-map-gl/maplibre" export const DebugMapTileBoundaries = () => { const { mainMap } = useMap() const [show, setShow] = useState(false) - if (isProduction) return null + if (!isDev) return null return (