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 (playerIdCookie) {
return NextResponse.redirect(
new URL(`/player/${playerIdCookie.value}`, request.url),
new URL(`/player/${playerIdCookie}`, request.url),
);
} else {
return NextResponse.redirect(new URL("/search", request.url));

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