fix(expo): avoid a leading “; ” when constructing the first cookie (#7821)

This commit is contained in:
Laurin
2026-02-06 16:35:18 +01:00
committed by GitHub
parent 01faefc2ce
commit a2b64cd990

View File

@@ -108,7 +108,7 @@ export function getCookie(cookie: string) {
if (value.expires && new Date(value.expires) < new Date()) {
return acc;
}
return `${acc}; ${key}=${value.value}`;
return acc ? `${acc}; ${key}=${value.value}` : `${key}=${value.value}`;
}, "");
return toSend;
}