mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-09 16:53:36 -05:00
patch: temporarily fix issue with public invites
This commit is contained in:
parent
95ebd935ed
commit
c997286340
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,8 @@ export default observer(
|
||||||
keyof Props | "children" | "as"
|
keyof Props | "children" | "as"
|
||||||
>,
|
>,
|
||||||
) => {
|
) => {
|
||||||
const client = useApplicationState().client!;
|
// ! TODO: this is temporary code
|
||||||
|
const client = useClient() ?? useApplicationState().client!;
|
||||||
|
|
||||||
const {
|
const {
|
||||||
target,
|
target,
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { ArrowBack } from "@styled-icons/boxicons-regular";
|
import { ArrowBack } from "@styled-icons/boxicons-regular";
|
||||||
import { autorun } from "mobx";
|
|
||||||
import { Redirect, useHistory, useParams } from "react-router-dom";
|
import { Redirect, useHistory, useParams } from "react-router-dom";
|
||||||
import { API } from "revolt.js";
|
import { API } from "revolt.js";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue