From fc046936aa6c4e6713291f6f95a470f4710e37b5 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Sat, 8 Jan 2022 16:38:38 +0000 Subject: [PATCH] fix: use config for initial configuration fetch --- src/context/revoltjs/RevoltClient.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context/revoltjs/RevoltClient.tsx b/src/context/revoltjs/RevoltClient.tsx index e3ed971b..1676d56e 100644 --- a/src/context/revoltjs/RevoltClient.tsx +++ b/src/context/revoltjs/RevoltClient.tsx @@ -50,7 +50,7 @@ export default observer(({ children }: Props) => { useEffect(() => { if (navigator.onLine) { - new Client().req("GET", "/").then(state.config.set); + state.config.createClient().req("GET", "/").then(state.config.set); } }, []);