api/cookie: fix cookie.set() being ran only once

This commit is contained in:
jj 2024-11-02 18:46:56 +00:00
parent b88abdd94b
commit c44a5ecc89
No known key found for this signature in database

View file

@ -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) {