azri пре 1 недеља
родитељ
комит
c2d4846ede
2 измењених фајлова са 4 додато и 4 уклоњено
  1. 2
    2
      src/components/SideCart/SideCart.jsx
  2. 2
    2
      src/pages/Cart.jsx

+ 2
- 2
src/components/SideCart/SideCart.jsx Прегледај датотеку

@@ -194,8 +194,8 @@ const SideCart = ({ open, onClose }) => {
194 194
                 <Typography variant="body1" sx={{ fontWeight: "400" }}>Taxes</Typography>
195 195
                 <Typography variant="body1" sx={{ fontWeight: "400" }}>
196 196
                   {`
197
-                    ${cart?.cost?.totalTaxAmount?.currencyCode} 
198
-                    ${parseFloat(cart?.cost?.totalTaxAmount?.amount).toFixed(2)}
197
+                    ${cart?.cost?.totalTaxAmount?.currencyCode || ""} 
198
+                    ${parseFloat(cart?.cost?.totalTaxAmount?.amount || 0).toFixed(2)}
199 199
                   `}
200 200
                 </Typography>
201 201
               </Box>

+ 2
- 2
src/pages/Cart.jsx Прегледај датотеку

@@ -207,8 +207,8 @@ const Cart = () => {
207 207
               <Typography variant="body1" sx={{ fontWeight: "400" }}>Taxes</Typography>
208 208
               <Typography variant="body1" sx={{ fontWeight: "400" }}>
209 209
                 {`
210
-                  ${cart?.cost?.totalTaxAmount?.currencyCode} 
211
-                  ${parseFloat(cart?.cost?.totalTaxAmount?.amount).toFixed(2)}
210
+                  ${cart?.cost?.totalTaxAmount?.currencyCode || ""} 
211
+                  ${parseFloat(cart?.cost?.totalTaxAmount?.amount || 0).toFixed(2)}
212 212
                 `}
213 213
               </Typography>
214 214
             </Box>

Loading…
Откажи
Сачувај