aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/app/routes/estimates-$id.tsx
diff options
context:
space:
mode:
authorAriel Costas Guerrero <ariel@costas.dev>2025-09-07 19:35:19 +0200
committerAriel Costas Guerrero <ariel@costas.dev>2025-09-07 19:35:19 +0200
commit822f0e9f33b8711ac8a8b656a4778b7404a37e0b (patch)
tree6ef319511eab5202dd667d87ae564186863e9fcf /src/frontend/app/routes/estimates-$id.tsx
parent5735b05871e2cf7a83c3484894d7e3f03e587b06 (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.tsx6
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: {