fix: Correct incomplete $state initialization in multiple Svelte components and pages.
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user