Fix/cart back navigation #12
@@ -57,6 +57,7 @@ export default function Cart() {
|
||||
|
||||
useEffect(() => { if (customer) loadAll(); }, [customer]);
|
||||
|
||||
// compute the total
|
||||
const total = items.reduce((sum, i) => sum + i.price_cents, 0);
|
||||
|
||||
async function handleRemove(itemId: number) {
|
||||
|
||||
Reference in New Issue
Block a user