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}`, {
|
||||
method: 'GET'
|
||||
})
|
||||
await new Promise((r) => setTimeout(r, 100))
|
||||
|
||||
return (await r.json()) as {
|
||||
cancel_policy?: any
|
||||
|
||||
Reference in New Issue
Block a user