fix: use config for initial configuration fetch

This commit is contained in:
Paul Makles 2022-01-08 16:38:38 +00:00
parent 8d1e26d03e
commit fc046936aa

View file

@ -50,7 +50,7 @@ export default observer(({ children }: Props) => {
useEffect(() => { useEffect(() => {
if (navigator.onLine) { if (navigator.onLine) {
new Client().req("GET", "/").then(state.config.set); state.config.createClient().req("GET", "/").then(state.config.set);
} }
}, []); }, []);