From 67ef241d281a8962fd837fd1bd47d2168acfc0c0 Mon Sep 17 00:00:00 2001 From: Milan Gruner Date: Tue, 2 Apr 2024 16:17:10 +0200 Subject: [PATCH] fix(ui): wrong scale label being displayed for data sources on SourceDrawer Was displaying "country" for all of them instead of "city" for the non-downscaled sources --- app/src/app/[lng]/[inventory]/data/[step]/SourceDrawer.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/src/app/[lng]/[inventory]/data/[step]/SourceDrawer.tsx b/app/src/app/[lng]/[inventory]/data/[step]/SourceDrawer.tsx index 5e52423d1..4a91fe993 100644 --- a/app/src/app/[lng]/[inventory]/data/[step]/SourceDrawer.tsx +++ b/app/src/app/[lng]/[inventory]/data/[step]/SourceDrawer.tsx @@ -209,10 +209,7 @@ export function SourceDrawer({ - {t("scale")}:{" "} - {source.accessType === "global-api" - ? t("city") - : t("country")} + {t("scale")}: {t(source.spatialResolution || "unknown")}