update src/views/ShoppingCart/index.js

temp
mahdi 2 years ago
parent c1df77f660
commit 4a67480149
  1. 11
      src/views/ShoppingCart/index.js

@ -274,7 +274,9 @@ function ShoppingCart({
}`}
>
<div className="flex flex-col flex-1">{layouts[phase]}</div>
{phase !== "address" && (
{console.log(list)}
{list?.length
? phase !== "address" && (
<div
className="flex flex-col w-1/4 p-10 bg-white shadow-all rounded-md px-4 py-4"
style={{ height: "fit-content", minWidth: 350 }}
@ -293,7 +295,9 @@ function ShoppingCart({
<PriceStatus
name="مالیات بر ارزش افزوده"
value={
productsLength ? Math.floor(factorInfo?.sumPrice * 0.009) : ""
productsLength
? Math.floor(factorInfo?.sumPrice * 0.009)
: ""
}
type="error"
/>
@ -378,7 +382,8 @@ function ShoppingCart({
</button>
)}
</div>
)}
)
: null}
</div>
);
}

Loading…
Cancel
Save