mirror of
https://github.com/TheRealOwenRees/chess-scribe-website.git
synced 2026-07-23 01:46:57 +00:00
remove isLoggedIn booelan from lichess user, either a user exists or doesnt
This commit is contained in:
@@ -15,7 +15,6 @@ import { getSession } from "#/server/lichess.ts";
|
|||||||
interface ILichessUser {
|
interface ILichessUser {
|
||||||
username: string;
|
username: string;
|
||||||
id: string;
|
id: string;
|
||||||
isLoggedIn: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ILichessUserContextType {
|
interface ILichessUserContextType {
|
||||||
@@ -38,7 +37,6 @@ export const LichessUserProvider = ({ children }: { children: ReactNode }) => {
|
|||||||
setUser({
|
setUser({
|
||||||
username: session.username,
|
username: session.username,
|
||||||
id: session.id,
|
id: session.id,
|
||||||
isLoggedIn: true,
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|||||||
Reference in New Issue
Block a user