Skip to content

Commit

Permalink
fix(ui): wrong scale label being displayed for data sources on Source…
Browse files Browse the repository at this point in the history
…Drawer

Was displaying "country" for all of them instead of "city" for the
non-downscaled sources
  • Loading branch information
lemilonkh committed Apr 2, 2024
1 parent f2199f2 commit 67ef241
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app/src/app/[lng]/[inventory]/data/[step]/SourceDrawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ export function SourceDrawer({
<Tag bgColor="brand.secondary" border={0}>
<TagLeftIcon as={ScaleIcon} boxSize={6} color="base.light" />
<TagLabel color="base.light">
{t("scale")}:{" "}
{source.accessType === "global-api"
? t("city")
: t("country")}
{t("scale")}: {t(source.spatialResolution || "unknown")}
</TagLabel>
</Tag>

Expand Down

0 comments on commit 67ef241

Please sign in to comment.