Skip to content

Commit

Permalink
rename function that creates cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickson-adbe committed Jan 22, 2025
1 parent e94bf2a commit 451a4a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blocks/gmo-program-list/gmo-program-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ document.addEventListener('gmoCampaignListBlock', async function() {
currentNumberPerPage = DEFAULT_ITEMS_PER_PAGE;

// save the filter in a cookie
createSearchCookie(currentGraphqlFilter);
createSearchFilterCookie(currentGraphqlFilter);

//Trigger loading the gmo-campaign-block
decorate( block, currentNumberPerPage, '', false, false, currentGraphqlFilter);
Expand Down Expand Up @@ -574,7 +574,7 @@ function sortColumn(dir, property) {
});
}

function createSearchCookie(graphQLFilter) {
function createSearchFilterCookie(graphQLFilter) {
const date = new Date();
date.setTime(date.getTime() + (24 * 60 * 60 * 1000));
const expires = `expires=${date.toUTCString()}`;
Expand Down

0 comments on commit 451a4a9

Please sign in to comment.