fix(expo): when acc is empty in the getCookie function in the expo client only return the key value pair

This commit is contained in:
Laurin-Notemann
2026-02-06 10:09:35 +01:00
parent 01faefc2ce
commit cd366df52b

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;
}