fix: use config for initial configuration fetch

This commit is contained in:
Paul Makles committed 2022-01-08 16:38:38 +00:00
1 parent 8d1e26d03e
commit fc046936aa
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
}, []);