1
0
Fork 0
mirror of https://gitlab.com/nekoya/web.git synced 2025-04-25 21:48:01 +02:00

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;