@softheon/armature 19.21.0 → 19.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6712,10 +6712,10 @@ class MarketSelectionService {
6712
6712
  * @param selection
6713
6713
  */
6714
6714
  updateSelectedMarket(selection) {
6715
- this.cookieService.deleteAll('/');
6715
+ this.cookieService.delete('selectedMarket', '/');
6716
6716
  this.cookieService.set('selectedMarket', JSON.stringify({
6717
6717
  name: selection.name
6718
- }));
6718
+ }), { path: '/' });
6719
6719
  const domainUrl = this.resolveOrigin(selection?.apiUrl);
6720
6720
  if (!!domainUrl) {
6721
6721
  window.sessionStorage.setItem(this.MFE_QUEUE_LOOKUP, domainUrl);
@@ -6867,7 +6867,7 @@ class MarketSelectionService {
6867
6867
  */
6868
6868
  saveFavoriteMarketsToCookies() {
6869
6869
  const favoriteMarkets = this.favoriteMarket.map(m => ({ name: m.name }));
6870
- this.cookieService.set('favoriteMarket', JSON.stringify(favoriteMarkets));
6870
+ this.cookieService.set('favoriteMarket', JSON.stringify(favoriteMarkets), { path: '/' });
6871
6871
  }
6872
6872
  /**
6873
6873
  * Get the base site URL using ephemeral or selected market, or default if none