Compare commits

..

No commits in common. "19fa2651660f34caf8efd226478dcab958eaa4c7" and "a31379614389a0e3654ea155c8b0e8df0ecc4138" have entirely different histories.

2 changed files with 2 additions and 4 deletions

@ -9,7 +9,7 @@ export function middleware(request: NextRequest) {
if (pathname == "/") { if (pathname == "/") {
if (playerIdCookie) { if (playerIdCookie) {
return NextResponse.redirect( return NextResponse.redirect(
new URL(`/player/${playerIdCookie.value}`, request.url), new URL(`/player/${playerIdCookie}`, request.url),
); );
} else { } else {
return NextResponse.redirect(new URL("/search", request.url)); return NextResponse.redirect(new URL("/search", request.url));

@ -44,9 +44,7 @@ export const useSettingsStore = create<SettingsStore>()(
player: playerData, player: playerData,
}); });
cookieCutter.set("playerId", playerData.id, { cookieCutter.set("playerId", playerData.id);
path: "/",
});
}, },
async addFriend(friendId: string) { async addFriend(friendId: string) {