Commit c20c8b21 by Matthew Piatetsky Committed by GitHub

Merge pull request #16313 from edx/LEARNER-2412

Do not set location cookie for USA and set cookie on top level domain
parents 5aa450ec e0c73928
......@@ -17,6 +17,10 @@ export class Currency { // eslint-disable-line import/prefer-default-export
if (countryL10nData) {
countryL10nData.countryCode = countryCode;
$.cookie('edx-price-l10n', JSON.stringify(countryL10nData), {
domain: 'edx.org',
expires: 1,
});
} else {
countryL10nData = {
countryCode: 'USA',
......@@ -26,9 +30,6 @@ export class Currency { // eslint-disable-line import/prefer-default-export
};
}
this.countryL10nData = countryL10nData;
$.cookie('edx-price-l10n', JSON.stringify(countryL10nData), {
expires: 1,
});
}
setPrice() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment