Skip to content

Commit

Permalink
updated the correct variable while setting cookie (prebid#9234)
Browse files Browse the repository at this point in the history
Co-authored-by: pm-azhar-mulla <azhar@L1119.local>
  • Loading branch information
2 people authored and jorgeluisrocha committed May 18, 2023
1 parent 05f7e5f commit d9b83e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/userId/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export function setStoredValue(submodule, value) {
const valueStr = isPlainObject(value) ? JSON.stringify(value) : value;
if (storage.type === COOKIE) {
const setCookie = cookieSetter(submodule);
setCookie(null, value, expiresStr);
setCookie(null, valueStr, expiresStr);
if (typeof storage.refreshInSeconds === 'number') {
setCookie('_last', new Date().toUTCString(), expiresStr);
}
Expand Down

0 comments on commit d9b83e1

Please sign in to comment.