chore: build
Frontend Web - Build & Lint / build (push) Canceled after 0s
Backend - Build & Lint / build (push) Canceled after 21m50s
Frontend Admin - EAS Build / build (push) Successful in 1h50m27s
Frontend Client - EAS Build / build (push) Successful in 1h50m44s

This commit is contained in:
Xor290
2026-09-08 17:55:18 +02:00
parent 75b80b8f59
commit 4474b84e49
4 changed files with 2 additions and 7 deletions
-1
View File
@@ -39,7 +39,6 @@ func (d *Database) InsertCommandItemsBatch(items []commandItemFull) error {
// ============================================ // ============================================
// VALIDATION HELPERS // VALIDATION HELPERS
// ============================================
func validateCommandID(commandID int) error { func validateCommandID(commandID int) error {
if commandID <= 0 { if commandID <= 0 {
@@ -73,7 +73,6 @@ export default function OrderDetailScreen() {
setCommand(cmdRes.command); setCommand(cmdRes.command);
setItems(itemsRes.items ?? []); setItems(itemsRes.items ?? []);
// If livreur assigned, fetch their location and calc route
const cmd = cmdRes.command; const cmd = cmdRes.command;
if (cmd?.livreur_assign && cmd?.adresse) { if (cmd?.livreur_assign && cmd?.adresse) {
loadLivreurRoute(cmd.livreur_assign, cmd.adresse); loadLivreurRoute(cmd.livreur_assign, cmd.adresse);
@@ -1,9 +1,5 @@
// ============================================ // ============================================
// context/CartContext.tsx - QUANTITÉS EN GRAMMES // context/CartContext.tsx - QUANTITÉS EN GRAMMES
// ============================================
// ✅ quantity = grammes choisis (5, 10, 25, etc.)
// ✅ Pas de boutons +/- dans le panier
// ✅ Pour acheter 2× le même produit, l'ajouter 2 fois
import { import {
createContext, createContext,
@@ -348,4 +344,3 @@ export function CartProvider({ children }: { children: ReactNode }) {
</CartContext.Provider> </CartContext.Provider>
); );
} }
+2
View File
@@ -220,3 +220,5 @@ export function useCart() {
if (!context) throw new Error("useCart must be used within a CartProvider"); if (!context) throw new Error("useCart must be used within a CartProvider");
return context; return context;
} }
//