Fakultas Ilmu Komputer UI

Commit ffb9c73c authored by FadhilP's avatar FadhilP
Browse files

[REFACTOR] fix merge conflict

parents 15fb4966 5e8e6f39
Pipeline #72693 passed with stages
in 3 minutes and 45 seconds
......@@ -13,7 +13,8 @@ const ListBatch = () =>{
const shippingCosts = batches.results.map( (batch) => batch.shipping_cost);
if (shippingCosts.length){
const cost = shippingCosts.reduce( (acc, curr) => acc + curr);
totalCost = stringToCurrency(cost?.toString());
if (cost)
totalCost = stringToCurrency(cost.toString());
}else{
totalCost = stringToCurrency("0");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment