Fix checkout bug

This commit is contained in:
Moe Poi ~ 2021-11-20 14:04:03 +07:00
parent 61d722778f
commit d3dbda638b

View file

@ -3,6 +3,9 @@ function proceedCheckout() {
}
function view_checkout() {
if (localStorage.getItem("bag") === null) {
localStorage.setItem("bag", "[]");
}
var bag = JSON.parse(localStorage.getItem("bag"));
var html = '';
var total_price = 0;