mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-15 04:39:58 +00:00
api/cookie: fix cookie.set() being ran only once
This commit is contained in:
parent
b88abdd94b
commit
c44a5ecc89
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ export function updateCookieValues(cookie, values) {
|
|||
let changed = false;
|
||||
|
||||
for (const [ key, value ] of Object.entries(values)) {
|
||||
changed ||= cookie.set(key, value);
|
||||
changed = cookie.set(key, value) || changed;
|
||||
}
|
||||
|
||||
if (changed) {
|
||||
|
|
Loading…
Reference in a new issue