fix server action response

This commit is contained in:
peintnermax
2024-10-09 10:47:18 +02:00
parent faf38c7f6f
commit 93b2ebf75e
3 changed files with 7 additions and 10 deletions

View File

@@ -28,8 +28,8 @@ function setSessionHttpOnlyCookie<T>(sessions: SessionCookie<T>[]) {
export async function setLanguageCookie(language: string) {
const cookiesList = cookies();
// @ts-ignore
return cookiesList.set({
await cookiesList.set({
name: "NEXT_LOCALE",
value: language,
httpOnly: true,