Skip to content
This repository was archived by the owner on Jun 2, 2022. It is now read-only.

Commit 9135d2d

Browse files
authored
Fix disabled cookie set
1 parent 06c0663 commit 9135d2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

view/frontend/web/js/buy-now.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ define([
4141
}).done(function(result) {
4242
if (!result) {
4343
$.mage.cookies.set(self.cookie, self.cookieDisabled);
44+
return;
4445
}
4546
$.mage.cookies.set(self.cookie, self.cookieEnabled, {lifetime: -1});
4647
self._createButton();
@@ -141,4 +142,4 @@ define([
141142
});
142143

143144
return $.pmclain.oneClickButton;
144-
});
145+
});

0 commit comments

Comments
 (0)