diff --git a/app/code/Magento/Cookie/view/frontend/web/js/notices.js b/app/code/Magento/Cookie/view/frontend/web/js/notices.js index 8ae7d64875822..253950747ce14 100644 --- a/app/code/Magento/Cookie/view/frontend/web/js/notices.js +++ b/app/code/Magento/Cookie/view/frontend/web/js/notices.js @@ -24,7 +24,7 @@ define([ $(this.options.cookieAllowButtonSelector).on('click', $.proxy(function () { var cookieExpires = new Date(new Date().getTime() + this.options.cookieLifetime * 1000); - $.mage.cookies.set(this.options.cookieName, this.options.cookieValue, { + $.mage.cookies.set(this.options.cookieName, JSON.stringify(this.options.cookieValue), { expires: cookieExpires });