diff --git a/nextjs-app/components/FilterBar.tsx b/nextjs-app/components/FilterBar.tsx
index 423ff14..6c08b94 100644
--- a/nextjs-app/components/FilterBar.tsx
+++ b/nextjs-app/components/FilterBar.tsx
@@ -20,7 +20,7 @@ export function FilterBar({ filters, isHero }: FilterBarProps) {
const currentSearch = searchParams.get('search') || '';
const currentPostcode = searchParams.get('postcode') || '';
- const currentRadius = searchParams.get('radius') || '1.6';
+ const currentRadius = searchParams.get('radius') || '1';
const initialOmniValue = currentPostcode || currentSearch;
const [omniValue, setOmniValue] = useState(initialOmniValue);
@@ -69,7 +69,7 @@ export function FilterBar({ filters, isHero }: FilterBarProps) {
}
if (isValidPostcode(omniValue)) {
- updateURL({ postcode: omniValue.trim().toUpperCase(), radius: currentRadius || '1.6', search: '' });
+ updateURL({ postcode: omniValue.trim().toUpperCase(), radius: currentRadius || '1', search: '' });
} else {
updateURL({ search: omniValue.trim(), postcode: '', radius: '' });
}
@@ -113,11 +113,11 @@ export function FilterBar({ filters, isHero }: FilterBarProps) {
className={styles.radiusSelect}
disabled={isPending}
>
-
-
-
-
-
+
+
+
+
+
)}
diff --git a/nextjs-app/components/HomeView.tsx b/nextjs-app/components/HomeView.tsx
index 869eec6..e0e9040 100644
--- a/nextjs-app/components/HomeView.tsx
+++ b/nextjs-app/components/HomeView.tsx
@@ -147,7 +147,7 @@ export function HomeView({ initialSchools, filters, totalSchools }: HomeViewProp
{searchParams.get('search') && Search: {searchParams.get('search')} { e.preventDefault(); }}>×}
{searchParams.get('local_authority') && {searchParams.get('local_authority')}}
{searchParams.get('school_type') && {searchParams.get('school_type')}}
- {searchParams.get('postcode') && Near {searchParams.get('postcode')} ({(parseFloat(searchParams.get('radius') || '1.6') / 1.60934).toFixed(1)} mi)}
+ {searchParams.get('postcode') && Near {searchParams.get('postcode')} ({parseFloat(searchParams.get('radius') || '1')} mi)}
)}
@@ -248,7 +248,7 @@ function CompactSchoolItem({ school, onAddToCompare, isInCompare }: CompactSchoo
{school.distance !== undefined && school.distance !== null && (
- {(school.distance / 1.60934).toFixed(1)} mi
+ {school.distance.toFixed(1)} mi
)}
diff --git a/nextjs-app/components/SchoolRow.tsx b/nextjs-app/components/SchoolRow.tsx
index 30f528a..64923d9 100644
--- a/nextjs-app/components/SchoolRow.tsx
+++ b/nextjs-app/components/SchoolRow.tsx
@@ -108,7 +108,7 @@ export function SchoolRow({
)}
{isLocationSearch && school.distance != null && (
- {(school.distance / 1609.34).toFixed(1)} mi
+ {school.distance.toFixed(1)} mi
)}