add delay to user see the loading

This commit is contained in:
2025-11-18 20:58:20 -03:00
parent 3a42e4c7d2
commit 0837ac9536

View File

@@ -221,6 +221,7 @@ async function getEnrollment(id: string) {
const r = await fetch(`/~/api/enrollments/${id}`, { const r = await fetch(`/~/api/enrollments/${id}`, {
method: 'GET' method: 'GET'
}) })
await new Promise((r) => setTimeout(r, 100))
return (await r.json()) as { return (await r.json()) as {
cancel_policy?: any cancel_policy?: any