<!--- Provide a general summary of the issue in the Title above --> <!--- Before adding new issues, please, check this article https://github.com/magento/magento2/wiki/Issue-reporting-guidelines--> ### Preconditions <!--- Provide a more detailed information of environment you use --> <!--- Magento version, tag, HEAD, etc., PHP & MySQL version, etc.. --> 1. Magento 2.1.2 ### Steps to reproduce <!--- Provide a set of unambiguous steps to reproduce this bug include code, if relevant --> 1. Enable Single Store Mode 2. Add product to cart, go to cart ### Expected result <!--- Tell us what should happen --> 1. No js errors ### Actual result <!--- Tell us what happens instead --> 1. There are an error in console <pre>Uncaught TypeError: Cannot read property 'storeCode' of undefined(anonymous function) @ url-builder.js:17 </pre> url-builder.js; <pre> define( [ 'jquery', 'Magento_Checkout/js/model/url-builder' ], function ($, urlBuilder) { 'use strict'; return $.extend( urlBuilder, { line 17: ----> storeCode: window.giftOptionsConfig.storeCode } ); } ); </pre> <!--- (This may be platform independent comment) -->