diff --git a/frontend-admin/src/api/api_delivery.ts b/frontend-admin/src/api/api_delivery.ts index 139826f2..69833226 100644 --- a/frontend-admin/src/api/api_delivery.ts +++ b/frontend-admin/src/api/api_delivery.ts @@ -76,7 +76,6 @@ export const getMyDeliveries = async (): Promise<{ }> => { try { const { data } = await apiClient.get(`${API}/deliveries`); - // Le backend inclut déjà items et client_info dans chaque livraison const deliveries: DeliveryItem[] = (data.deliveries || []).map( (d: any) => ({ ...d, items: d.items || [] }), ); diff --git a/mobile/src/auth/tokenStorage.ts b/mobile/src/auth/tokenStorage.ts index 2b7fa252..d258bdb1 100644 --- a/mobile/src/auth/tokenStorage.ts +++ b/mobile/src/auth/tokenStorage.ts @@ -12,7 +12,6 @@ export const setToken = (token: string) => AsyncStorage.setItem(TOKEN_KEY, token); export const removeToken = () => AsyncStorage.removeItem(TOKEN_KEY); -// Admin/Cabine/Livreur token export const getAdminToken = () => AsyncStorage.getItem(ADMIN_TOKEN_KEY); export const setAdminToken = (token: string) => AsyncStorage.setItem(ADMIN_TOKEN_KEY, token);