fix: use config for initial configuration fetch

pull/504/head
Paul Makles 2022-01-08 16:38:38 +00:00
parent 8d1e26d03e
commit fc046936aa
1 changed files with 1 additions and 1 deletions

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);
}
}, []);