chore: build
This commit is contained in:
@@ -39,7 +39,6 @@ func (d *Database) InsertCommandItemsBatch(items []commandItemFull) error {
|
||||
|
||||
// ============================================
|
||||
// VALIDATION HELPERS
|
||||
// ============================================
|
||||
|
||||
func validateCommandID(commandID int) error {
|
||||
if commandID <= 0 {
|
||||
|
||||
@@ -73,7 +73,6 @@ export default function OrderDetailScreen() {
|
||||
setCommand(cmdRes.command);
|
||||
setItems(itemsRes.items ?? []);
|
||||
|
||||
// If livreur assigned, fetch their location and calc route
|
||||
const cmd = cmdRes.command;
|
||||
if (cmd?.livreur_assign && cmd?.adresse) {
|
||||
loadLivreurRoute(cmd.livreur_assign, cmd.adresse);
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// ============================================
|
||||
// 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 {
|
||||
createContext,
|
||||
@@ -348,4 +344,3 @@ export function CartProvider({ children }: { children: ReactNode }) {
|
||||
</CartContext.Provider>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -220,3 +220,5 @@ export function useCart() {
|
||||
if (!context) throw new Error("useCart must be used within a CartProvider");
|
||||
return context;
|
||||
}
|
||||
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user