diff --git a/packages/client/src/contexts/AppContext.tsx b/packages/client/src/contexts/AppContext.tsx index e14b9c5..030f51e 100644 --- a/packages/client/src/contexts/AppContext.tsx +++ b/packages/client/src/contexts/AppContext.tsx @@ -35,7 +35,11 @@ export const AppContext = ({ children }: PropsWithChildren) => { useEffect(() => { function loadSettings() { - setLoadChat(localStorage.getItem("matrix.enable") === "true"); + setLoadChat( + localStorage.getItem("matrix.enable") === null + ? true + : localStorage.getItem("matrix.enable") === "true" + ); } function handleConfig(config: ClientConfig) {