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';