fix: Correct incomplete $state initialization in multiple Svelte components and pages.

This commit is contained in:
2025-12-02 19:18:53 -03:00
parent 4bd9e21748
commit 8a50fb6f61
99 changed files with 520 additions and 519 deletions

View File

@@ -21,7 +21,7 @@
const client = useConvexClient();
const motivoReprovacao = $state('');
let motivoReprovacao = $state('');
let processando = $state(false);
let erro = $state('');
let mostrarModalErro = $state(false);
@@ -34,7 +34,7 @@
return Math.ceil(diff / (1000 * 60 * 60 * 24)) + 1;
}
const totalDias = $derived(calcularDias(solicitacao.dataInicio, solicitacao.dataFim));
let totalDias = $derived(calcularDias(solicitacao.dataInicio, solicitacao.dataFim));
async function aprovar() {
try {