patch: temporarily fix issue with public invites

This commit is contained in:
Paul Makles 2022-06-28 13:22:10 +01:00
parent 95ebd935ed
commit c997286340
2 changed files with 2 additions and 2 deletions

View file

@ -56,7 +56,8 @@ export default observer(
keyof Props | "children" | "as"
>,
) => {
const client = useApplicationState().client!;
// ! TODO: this is temporary code
const client = useClient() ?? useApplicationState().client!;
const {
target,

View file

@ -1,5 +1,4 @@
import { ArrowBack } from "@styled-icons/boxicons-regular";
import { autorun } from "mobx";
import { Redirect, useHistory, useParams } from "react-router-dom";
import { API } from "revolt.js";