add delay to user see the loading
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user