diff options
| author | Ariel Costas Guerrero <ariel@costas.dev> | 2025-09-07 19:35:19 +0200 |
|---|---|---|
| committer | Ariel Costas Guerrero <ariel@costas.dev> | 2025-09-07 19:35:19 +0200 |
| commit | 822f0e9f33b8711ac8a8b656a4778b7404a37e0b (patch) | |
| tree | 6ef319511eab5202dd667d87ae564186863e9fcf /src/frontend/app/routes/estimates-$id.tsx | |
| parent | 5735b05871e2cf7a83c3484894d7e3f03e587b06 (diff) | |
Remove timeouts that shouldn't be there
Diffstat (limited to 'src/frontend/app/routes/estimates-$id.tsx')
| -rw-r--r-- | src/frontend/app/routes/estimates-$id.tsx | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/frontend/app/routes/estimates-$id.tsx b/src/frontend/app/routes/estimates-$id.tsx index 4b232cb..dc45198 100644 --- a/src/frontend/app/routes/estimates-$id.tsx +++ b/src/frontend/app/routes/estimates-$id.tsx @@ -36,9 +36,6 @@ interface ErrorInfo { } const loadData = async (stopId: string): Promise<StopDetails> => { - // Add delay to see skeletons in action (remove in production) - await new Promise(resolve => setTimeout(resolve, 1000)); - const resp = await fetch(`/api/GetStopEstimates?id=${stopId}`, { headers: { Accept: "application/json", @@ -53,9 +50,6 @@ const loadData = async (stopId: string): Promise<StopDetails> => { }; const loadTimetableData = async (stopId: string): Promise<TimetableEntry[]> => { - // Add delay to see skeletons in action (remove in production) - await new Promise(resolve => setTimeout(resolve, 1500)); - const today = new Date().toISOString().split('T')[0]; // YYYY-MM-DD format const resp = await fetch(`/api/GetStopTimetable?date=${today}&stopId=${stopId}`, { headers: { |
