fix: allow invite screen to properly load while signed out

This commit is contained in:
Paul
2021-12-25 20:43:54 +00:00
parent 7f586e6f8c
commit 1b644d450d
4 changed files with 25 additions and 7 deletions

View File

@@ -3,6 +3,7 @@ import { Route, Switch } from "react-router-dom";
import { lazy, Suspense } from "preact/compat";
import ErrorBoundary from "../lib/ErrorBoundary";
import FakeClient from "../lib/FakeClient";
import Context from "../context";
import { CheckAuth } from "../context/revoltjs/CheckAuth";
@@ -31,7 +32,9 @@ export function App() {
<Login />
</Route>
<Route path="/invite/:code">
<Invite />
<FakeClient>
<Invite />
</FakeClient>
</Route>
<Route path="/login">
<CheckAuth>