Skip to content

Commit 468c05b

Browse files
committed
Fix formatting of postcode display
1 parent 4b1de0d commit 468c05b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

webapp/components/PollutionMapSearchBox.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export default function PollutionMapSearchBox({
104104

105105
const displayText =
106106
feature.properties.type === "municipality"
107-
? `${feature.properties.label} (${feature.properties.postcode})`
107+
? `${feature.properties.label}, ${feature.properties.postcode}`
108108
: feature.properties.label;
109109

110110
setFilterString(displayText);
@@ -183,7 +183,7 @@ export default function PollutionMapSearchBox({
183183
<div className="flex-grow">
184184
{feature.properties.type === "municipality" ? (
185185
<HilightLabel
186-
originalText={`${feature.properties.label} (${feature.properties.postcode})`}
186+
originalText={`${feature.properties.label}, ${feature.properties.postcode}`}
187187
textToHilight={filterString}
188188
/>
189189
) : (

0 commit comments

Comments
 (0)