wishlist issue

This commit is contained in:
Shubham Mehrotra 2020-03-24 19:28:37 +05:30
parent cf2610f239
commit b079b6f83c
3 changed files with 4 additions and 4 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
{
"/js/velocity.js": "/js/velocity.js?id=eded4243db3e3a003186",
"/js/velocity.js": "/js/velocity.js?id=7c0b28c4bad16ac7f9bc",
"/css/velocity-admin.css": "/css/velocity-admin.css?id=612d35e452446366eef7",
"/css/velocity.css": "/css/velocity.css?id=4109f5e05451bbc83138"
}

View File

@ -58,7 +58,7 @@
let existingValue = this.getStorageValue('wishlist_product');
if (existingValue) {
let valueIndex = existingValue.indexOf(productId);
var valueIndex = existingValue.indexOf(productId);
if (valueIndex == -1) {
this.isActive = true;
@ -82,7 +82,7 @@
this.isActive ? this.addedText : this.removeText
);
if (this.moveToWishlist) {
if (this.moveToWishlist && valueIndex == -1) {
window.location.href = this.moveToWishlist;
}