fix: redirect to / on empty invites

This commit is contained in:
goat
2021-09-08 19:35:53 +02:00
parent 4787a2166f
commit 8185b59771
2 changed files with 4 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ export default function App() {
<Route path="/friends" component={Friends} />
<Route path="/open/:id" component={Open} />
<Route path="/bot/:id" component={InviteBot} />
<Route path="/invite/:code" component={Invite} />
<Route path="/invite/:code?" component={Invite} />
<Route path="/" component={Home} />
</Switch>
</Routes>