From 50aeaf4fa3921a84f9d0a815151af061810969bf Mon Sep 17 00:00:00 2001 From: estifanos Date: Mon, 10 Aug 2026 12:10:44 +0000 Subject: [PATCH] fix --- .../app/features/licensing/pages/LicenseApplicationPage.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/portal/src/app/features/licensing/pages/LicenseApplicationPage.tsx b/apps/portal/src/app/features/licensing/pages/LicenseApplicationPage.tsx index cefdac499..b341f1b5e 100644 --- a/apps/portal/src/app/features/licensing/pages/LicenseApplicationPage.tsx +++ b/apps/portal/src/app/features/licensing/pages/LicenseApplicationPage.tsx @@ -134,7 +134,10 @@ export function LicenseApplicationPage() { ? prev : { ...prev, [section.key]: { ...prev[section.key], nationality: value } }, ); - }, [profile?.address?.nationality, config]); + // Also re-run after the server seed effect (above) replaces `draft` + // wholesale — that effect can resolve after this one, wiping the + // prefill back out since the server's own draft has no nationality yet. + }, [profile?.address?.nationality, config, detail?.application?.id, detail?.application?.formData]); const application = detail?.application; const isAdjusting = application?.status === 'RESUBMIT_REQUIRED';