fix: validate simulator dates and reconcile QA calculations reports and language

This commit is contained in:
2026-10-20 21:00:52 +02:00
parent 59ab4fe956
commit a690c665fb
39 changed files with 757 additions and 184 deletions
+4 -1
View File
@@ -419,6 +419,9 @@ function PartnershipForm() {
}
function Simulator() {
const page = usePage<{ auth: { user: { id: number } | null } }>();
const query = new URL(page.url, 'https://investmoz.invalid').searchParams;
const scope = `${page.props.auth.user?.id ?? 'anonymous'}:${query.get('context') ?? ''}:${query.get('draft') ?? ''}`;
return (
<div className="space-y-5">
<p>
@@ -428,7 +431,7 @@ function Simulator() {
para rever mercado, localização, recursos, formalização e
execução.
</p>
<SimulationForm />
<SimulationForm key={scope} />
</div>
);
}