This commit is contained in:
estifanos
2026-08-10 12:10:44 +00:00
parent 3b1630bf9a
commit 50aeaf4fa3

View File

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