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:10:59 +01:00
parent 01faefc2ce
commit cd366df52b
+1 -1
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;
}