Commit 9e4ab78b authored by bitsoko services's avatar bitsoko services 👷🏿

Update store.js

parent e6263ade
......@@ -545,8 +545,12 @@ function updateStore(t) {
} else {
$("#categoryName").css("border-bottom", "1px solid #9e9e9e");
try {
if(JSON.parse(JSON.parse(localStorage.getItem('soko-store-id-' + localStorage.getItem('soko-active-store') + '')).productCategory)==null){
throw 'no product categories list found! store needs to be updated!';
}
var prodCat = JSON.parse(JSON.parse(localStorage.getItem('soko-store-id-' + localStorage.getItem('soko-active-store') + '')).productCategory)
} catch (err) {
console.log(err);
var prodCat = "Null"
}
if (prodCat.length >= 8) {
......
Markdown is supported
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