Parcourir la source

fix bug on empty cart

master
azri il y a 1 an
Parent
révision
adc4682715
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      src/components/SideCart/SideCart.jsx

+ 1
- 1
src/components/SideCart/SideCart.jsx Voir le fichier

168
           )}
168
           )}
169
         </Box>
169
         </Box>
170
 
170
 
171
-        <Box sx={{ mt: "auto" }}>
171
+        <Box sx={{ mt: "auto", display:(cartProducts.length > 0) ? "block" : "none" }}>
172
           {/* INVOICES */}
172
           {/* INVOICES */}
173
           <Grid container spacing={2}>
173
           <Grid container spacing={2}>
174
 
174
 

Chargement…
Annuler
Enregistrer