Fakultas Ilmu Komputer UI

Commit 35476649 authored by FadhilP's avatar FadhilP
Browse files

[REFACTOR] Remove ? operator

parent 50c75b6c
Pipeline #70295 failed with stages
in 1 minute and 23 seconds
......@@ -14,7 +14,7 @@ const ListBatch = () =>{
if (shippingCosts.length){
const cost = shippingCosts.reduce( (acc, curr) => acc + curr);
if (cost)
totalCost = stringToCurrency(cost?.toString());
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