wishlist issue
This commit is contained in:
parent
cf2610f239
commit
b079b6f83c
File diff suppressed because one or more lines are too long
|
|
@ -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"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue