From c2d3f663bc965287f4c050a7a069649d8f7c1d5d Mon Sep 17 00:00:00 2001
From: Luca <102960244+Luca-Timo@users.noreply.github.com>
Date: Tue, 2 Jun 2026 09:37:33 +0200
Subject: [PATCH] fix(settings): use CountrySelect for business-profile country
(no more FL)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The business-profile country field — the seed source for the customer-create
country default — was still a free-text input placeholdered "FL", which could
reintroduce the non-ISO "FL" code that migration 110 normalized to "LI" and
re-open the create/edit CH-vs-FL default mismatch. Swap it for the shared
CountrySelect so every surface stores ISO alpha-2. The free-text countryName
verbatim-PDF override (migration 107) is unchanged.
---
.../admin/settings/SettingsBusinessProfilePage.tsx | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/frontend/src/pages/admin/settings/SettingsBusinessProfilePage.tsx b/frontend/src/pages/admin/settings/SettingsBusinessProfilePage.tsx
index 9ec0d54d..ed10d7db 100644
--- a/frontend/src/pages/admin/settings/SettingsBusinessProfilePage.tsx
+++ b/frontend/src/pages/admin/settings/SettingsBusinessProfilePage.tsx
@@ -15,7 +15,7 @@ import {
type BankAccount,
type QrFormat,
} from '../../../services/businessProfile.service';
-import { Button, Card, Loading, Input } from '../../../components/common';
+import { Button, Card, Loading, Input, CountrySelect } from '../../../components/common';
import { toast } from 'react-toastify';
export const SettingsBusinessProfilePage: React.FC = () => {
@@ -82,11 +82,9 @@ export const SettingsBusinessProfilePage: React.FC = () => {
onChange={(e) => setProfile({ ...profile, city: e.target.value })} />
setProfile({ ...profile, state: e.target.value })} />
- setProfile({ ...profile, countryCode: e.target.value.toUpperCase() })} />
+ setProfile({ ...profile, countryCode: code })} />
{/* Free-text country name override (migration 107). When
left empty the renderer falls back to the COUNTRY_NAMES
lookup on the abbreviation. */}